Changeset 44089 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Dec 11, 2012 12:14:58 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r44035 r44089 103 103 104 104 VMXReadVmcs(VMX_VMCS32_RO_VM_INSTR_ERROR, &instrError); 105 pVCpu->hm.s.vmx.lasterror.u lInstrError = instrError;105 pVCpu->hm.s.vmx.lasterror.u32InstrError = instrError; 106 106 } 107 107 pVM->hm.s.lLastError = rc; … … 4912 4912 /* Try to extract more information about what might have gone wrong here. */ 4913 4913 VMXGetActivateVMCS(&pVCpu->hm.s.vmx.lasterror.u64VMCSPhys); 4914 pVCpu->hm.s.vmx.lasterror.u lVMCSRevision = *(uint32_t *)pVCpu->hm.s.vmx.pvVMCS;4915 pVCpu->hm.s.vmx.lasterror.idEnteredCpu = pVCpu->hm.s.idEnteredCpu;4916 pVCpu->hm.s.vmx.lasterror.idCurrentCpu = RTMpCpuId();4914 pVCpu->hm.s.vmx.lasterror.u32VMCSRevision = *(uint32_t *)pVCpu->hm.s.vmx.pvVMCS; 4915 pVCpu->hm.s.vmx.lasterror.idEnteredCpu = pVCpu->hm.s.idEnteredCpu; 4916 pVCpu->hm.s.vmx.lasterror.idCurrentCpu = RTMpCpuId(); 4917 4917 } 4918 4918 … … 5175 5175 Log(("Current stack %08x\n", &rc2)); 5176 5176 5177 pVCpu->hm.s.vmx.lasterror.u lInstrError = instrError;5178 pVCpu->hm.s.vmx.lasterror.u lExitReason = exitReason;5177 pVCpu->hm.s.vmx.lasterror.u32InstrError = instrError; 5178 pVCpu->hm.s.vmx.lasterror.u32ExitReason = exitReason; 5179 5179 5180 5180 #ifdef VBOX_STRICT -
trunk/src/VBox/VMM/VMMR3/HM.cpp
r44085 r44089 1328 1328 LogRel(("HM: VMX setup failed with rc=%Rrc!\n", rc)); 1329 1329 for (VMCPUID i = 0; i < pVM->cCpus; i++) 1330 LogRel(("HM: CPU[%ld] Last instruction error %x\n", i, pVM->aCpus[0].hm.s.vmx.lasterror.u lInstrError));1330 LogRel(("HM: CPU[%ld] Last instruction error %x\n", i, pVM->aCpus[0].hm.s.vmx.lasterror.u32InstrError)); 1331 1331 pVM->fHMEnabled = false; 1332 1332 } … … 2704 2704 case VERR_VMX_INVALID_VMCS_PTR: 2705 2705 LogRel(("VERR_VMX_INVALID_VMCS_PTR: CPU%d Current pointer %RGp vs %RGp\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u64VMCSPhys, pVM->aCpus[i].hm.s.vmx.HCPhysVMCS)); 2706 LogRel(("VERR_VMX_INVALID_VMCS_PTR: CPU%d Current VMCS version %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u lVMCSRevision));2706 LogRel(("VERR_VMX_INVALID_VMCS_PTR: CPU%d Current VMCS version %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u32VMCSRevision)); 2707 2707 LogRel(("VERR_VMX_INVALID_VMCS_PTR: CPU%d Entered Cpu %d\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.idEnteredCpu)); 2708 2708 LogRel(("VERR_VMX_INVALID_VMCS_PTR: CPU%d Current Cpu %d\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.idCurrentCpu)); … … 2710 2710 2711 2711 case VERR_VMX_UNABLE_TO_START_VM: 2712 LogRel(("VERR_VMX_UNABLE_TO_START_VM: CPU%d instruction error %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u lInstrError));2713 LogRel(("VERR_VMX_UNABLE_TO_START_VM: CPU%d exit reason %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u lExitReason));2714 if (pVM->aCpus[i].hm.s.vmx.lasterror.u lInstrError == VMX_ERROR_VMENTRY_INVALID_CONTROL_FIELDS)2712 LogRel(("VERR_VMX_UNABLE_TO_START_VM: CPU%d instruction error %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u32InstrError)); 2713 LogRel(("VERR_VMX_UNABLE_TO_START_VM: CPU%d exit reason %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u32ExitReason)); 2714 if (pVM->aCpus[i].hm.s.vmx.lasterror.u32InstrError == VMX_ERROR_VMENTRY_INVALID_CONTROL_FIELDS) 2715 2715 { 2716 2716 LogRel(("VERR_VMX_UNABLE_TO_START_VM: Cpu%d MSRBitmapPhys %RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysMsrBitmap)); … … 2727 2727 2728 2728 case VERR_VMX_UNABLE_TO_RESUME_VM: 2729 LogRel(("VERR_VMX_UNABLE_TO_RESUME_VM: CPU%d instruction error %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u lInstrError));2730 LogRel(("VERR_VMX_UNABLE_TO_RESUME_VM: CPU%d exit reason %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u lExitReason));2729 LogRel(("VERR_VMX_UNABLE_TO_RESUME_VM: CPU%d instruction error %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u32InstrError)); 2730 LogRel(("VERR_VMX_UNABLE_TO_RESUME_VM: CPU%d exit reason %x\n", i, pVM->aCpus[i].hm.s.vmx.lasterror.u32ExitReason)); 2731 2731 break; 2732 2732 -
trunk/src/VBox/VMM/include/HMInternal.h
r44036 r44089 611 611 { 612 612 uint64_t u64VMCSPhys; 613 uint32_t u lVMCSRevision;614 uint32_t u lInstrError;615 uint32_t u lExitReason;613 uint32_t u32VMCSRevision; 614 uint32_t u32InstrError; 615 uint32_t u32ExitReason; 616 616 RTCPUID idEnteredCpu; 617 617 RTCPUID idCurrentCpu;
Note:
See TracChangeset
for help on using the changeset viewer.