Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


remove the reparant_threadd function from host os hooks
[palacios.git] / palacios / include / palacios / vmm.h
index 0d95821..ee70107 100644 (file)
@@ -193,10 +193,6 @@ struct guest_info;
     } while (0)
 
 
-
-
-
-
 #define V3_Call_On_CPU(cpu, fn, arg)                   \
     do {                                               \
         extern struct v3_os_hooks * os_hooks;           \
@@ -216,23 +212,23 @@ struct guest_info;
            thread;                                                     \
        })
 
-
 #endif
 
-
-
-
-
-
 /* ** */
 
+
 #define V3_ASSERT(x)                                                   \
     do {                                                               \
+       extern struct v3_os_hooks * os_hooks;                           \
        if (!(x)) {                                                     \
            PrintDebug("Failed assertion in %s: %s at %s, line %d, RA=%lx\n", \
                       __func__, #x, __FILE__, __LINE__,                \
                       (ulong_t) __builtin_return_address(0));          \
-           while(1);                                                   \
+           while(1){                                                   \
+               if ((os_hooks) && (os_hooks)->yield_cpu) {              \
+                       (os_hooks)->yield_cpu();                        \
+               }                                                       \
+           }                                                           \
        }                                                               \
     } while(0)                                                         \
        
@@ -333,5 +329,4 @@ int v3_stop_vm(struct v3_vm_info * vm);
 int v3_deliver_irq(struct v3_vm_info * vm, struct v3_interrupt * intr);
 
 
-
 #endif