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.


multicore fix for barrier
Jack Lange [Thu, 22 Sep 2011 15:50:28 +0000 (11:50 -0400)]
palacios/src/palacios/vmm_barrier.c
palacios/src/palacios/vmm_bitmap.c

index 7718fc8..f7b863d 100644 (file)
@@ -177,7 +177,7 @@ int v3_wait_at_barrier(struct guest_info * core) {
     V3_Print("Core %d bit set as waiting\n", core->vcpu_id);
 
     // wait for cpu bit to clear
-    while (v3_bitmap_check(&(barrier->cpu_map), core->vcpu_id) == 1) {
+    while (v3_bitmap_check(&(barrier->cpu_map), core->vcpu_id)) {
        v3_yield(core);
     }
 
index c056a5b..0f26473 100644 (file)
@@ -96,6 +96,6 @@ int v3_bitmap_check(struct v3_bitmap * bitmap, int index) {
        return -1;
     }
 
-    return (bitmap->bits[major] & (0x1 << minor));
+    return ((bitmap->bits[major] & (0x1 << minor)) != 0);
 }