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.


enabled stopping a VM before the secondary cores have been initialized
[palacios.git] / palacios / src / palacios / svm_wbinvd.c
index 9fe3dc3..eb8a35f 100644 (file)
 
 int v3_handle_svm_wbinvd(struct guest_info * info) {
 
-  if (info->cpl != 0) { 
-    PrintDebug("WBINVD: cpl != 0, injecting GPF\n");
-    v3_raise_exception(info, GPF_EXCEPTION);
-  } else {
-    info->rip += 2;
-    asm("wbinvd");
-  }
-
-  return 0;
+    if (info->cpl != 0) { 
+       PrintDebug("WBINVD: cpl != 0, injecting GPF\n");
+       v3_raise_exception(info, GPF_EXCEPTION);
+    } else {
+       info->rip += 2;
+       asm volatile ("wbinvd" ::: "memory");
+    }
+
+    return 0;
 }