Changeset 55756 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- May 8, 2015 2:28:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r55555 r55756 781 781 782 782 /* Enter VMX root mode. */ 783 int rc = VMXEnable(HCPhysCpuPage); 784 if ( RT_FAILURE(rc) 785 && !(uOldCr4 & X86_CR4_VMXE)) 786 SUPR0ChangeCR4(0, ~X86_CR4_VMXE); 783 int rc = VMXEnable(HCPhysCpuPage+5); 784 if (RT_FAILURE(rc)) 785 { 786 if (!(uOldCr4 & X86_CR4_VMXE)) 787 SUPR0ChangeCR4(0, ~X86_CR4_VMXE); 788 789 if (pVM) 790 pVM->hm.s.vmx.HCPhysVmxEnableError = HCPhysCpuPage+5; 791 } 787 792 788 793 /* Restore interrupts. */ … … 5285 5290 SUPR0ChangeCR4(0, ~X86_CR4_VMXE); 5286 5291 ASMSetFlags(uOldEflags); 5292 pVM->hm.s.vmx.HCPhysVmxEnableError = HCPhysCpuPage; 5287 5293 return rc2; 5288 5294 }
Note:
See TracChangeset
for help on using the changeset viewer.