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.


fixed debug output
Jack Lange [Tue, 22 Jul 2008 05:31:27 +0000 (05:31 +0000)]
palacios/src/palacios/svm.c

index 28967fb..2f11c0c 100644 (file)
@@ -264,6 +264,7 @@ static int init_svm_guest(struct guest_info *info) {
 static int start_svm_guest(struct guest_info *info) {
   vmcb_saved_state_t * guest_state = GET_VMCB_SAVE_STATE_AREA((vmcb_t*)(info->vmm_data));
   vmcb_ctrl_t * guest_ctrl = GET_VMCB_CTRL_AREA((vmcb_t*)(info->vmm_data));
+  uint_t num_exits = 0;
 
   PrintDebug("Launching SVM VM (vmcb=%x)\n", info->vmm_data);
   //PrintDebugVMCB((vmcb_t*)(info->vmm_data));
@@ -287,9 +288,14 @@ static int start_svm_guest(struct guest_info *info) {
 
 
     v3_update_time(info, tmp_tsc - info->time_state.cached_host_tsc);
+    num_exits++;
 
     STGI();
 
+    if ((num_exits % 25) == 0) {
+      PrintDebug("SVM Exit number %d\n", num_exits);
+    }
+
      
     if (handle_svm_exit(info) != 0) {