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.


added svm files
[palacios.git] / palacios / src / geekos / vmx.c
index 4ce96e0..2bfdf1a 100644 (file)
@@ -126,7 +126,7 @@ static int ExecFaultingInstructionInVMM(struct VM *vm)
 }
 
 
-VmxOnRegion * InitVMX() {
+VmxOnRegion * Init_VMX() {
   VmxOnRegion * region = NULL;
 
   unsigned int ret;
@@ -540,6 +540,8 @@ int Do_VMM(struct VMXRegs regs)
   vmcs_ptr_low +=  vmcs_ptr;
 
 
+
+
   SerialPrintLevel(100,"ret=%d\n", ret);
   SerialPrintLevel(100,"Revision: %x\n", *(uint_t *)(vmcs_ptr_low));
   vmx_abort = *(uint_t*)(((char *)vmcs_ptr_low)+4);
@@ -558,6 +560,9 @@ int Do_VMM(struct VMXRegs regs)
     return -1;
   }
 
+
+  SerialPrint("Guest esp: 0x%x (%u)\n", vm->vmcs.guestStateArea.rsp, vm->vmcs.guestStateArea.rsp);
+
   SerialPrintLevel(100,"VM Exit for reason: %d (%x)\n", 
              vm->vmcs.exitInfoFields.reason & 0x00000fff,
              vm->vmcs.exitInfoFields.reason);  
@@ -758,6 +763,8 @@ int MyLaunch(struct VM *vm)
   int ret;
   int vmm_ret = 0;
 
+  SerialPrint("Guest ESP: 0x%x (%u)\n", guest_esp, guest_esp);
+
   exit_eip=(uint_t)RunVMM;
 
   SerialPrintLevel(100,"Clear\n");
@@ -890,5 +897,3 @@ VMCS * CreateVMCS() {
 
   return vmcs;
 }
-
-