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.


changed v3_yield to be usable by non guest threads
Jack Lange [Wed, 9 Sep 2009 19:37:29 +0000 (14:37 -0500)]
palacios/src/palacios/vmm.c

index fcc6ea5..27edd92 100644 (file)
@@ -174,9 +174,17 @@ void v3_yield_cond(struct guest_info * info) {
     }
 }
 
+/* 
+ * unconditional cpu yield 
+ * if the yielding thread is a guest context, the guest quantum is reset on resumption 
+ * Non guest context threads should call this function with a NULL argument
+ */
 void v3_yield(struct guest_info * info) {
     V3_Yield();
-    rdtscll(info->yield_start_cycle);
+
+    if (info) {
+       rdtscll(info->yield_start_cycle);
+    }
 }