Changeset 45475 in vbox
- Timestamp:
- Apr 10, 2013 9:19:00 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84920
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r45474 r45475 598 598 RTCCUINTREG fFlags = ASMIntDisableFlags(); 599 599 600 /* Enable the VMX bit in CR4 . */600 /* Enable the VMX bit in CR4 if necessary. */ 601 601 RTCCUINTREG uCr4 = ASMGetCR4(); 602 602 if (!(uCr4 & X86_CR4_VMXE)) 603 603 ASMSetCR4(uCr4 | X86_CR4_VMXE); 604 604 605 /* Enter VMX ONroot mode. */606 int rc = VMXEnable(HCPhysCpuPage); 605 /* Enter VMX root mode. */ 606 int rc = VMXEnable(HCPhysCpuPage); /** @todo This would #GP(0) if we are already in VMX root mode... try skip it? */ 607 607 if (RT_FAILURE(rc)) 608 608 ASMSetCR4(uCr4); … … 628 628 if (ASMGetCR4() & X86_CR4_VMXE) 629 629 { 630 /* Exit root mode using VMXOFF &clear the VMX bit in CR4 */630 /* Exit VMX root mode and clear the VMX bit in CR4 */ 631 631 VMXDisable(); 632 632 ASMSetCR4(ASMGetCR4() & ~X86_CR4_VMXE);
Note:
See TracChangeset
for help on using the changeset viewer.