VirtualBox

Changeset 45475 in vbox


Ignore:
Timestamp:
Apr 10, 2013 9:19:00 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84920
Message:

VMM/VMMR0/HM: comment and todo for problem earlier seen today with assert screwing up VMX state somehow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r45474 r45475  
    598598    RTCCUINTREG fFlags = ASMIntDisableFlags();
    599599
    600     /* Enable the VMX bit in CR4. */
     600    /* Enable the VMX bit in CR4 if necessary. */
    601601    RTCCUINTREG uCr4 = ASMGetCR4();
    602602    if (!(uCr4 & X86_CR4_VMXE))
    603603        ASMSetCR4(uCr4 | X86_CR4_VMXE);
    604604
    605     /* Enter VMXON root 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? */
    607607    if (RT_FAILURE(rc))
    608608        ASMSetCR4(uCr4);
     
    628628    if (ASMGetCR4() & X86_CR4_VMXE)
    629629    {
    630         /* Exit root mode using VMXOFF & clear the VMX bit in CR4 */
     630        /* Exit VMX root mode and clear the VMX bit in CR4 */
    631631        VMXDisable();
    632632        ASMSetCR4(ASMGetCR4() & ~X86_CR4_VMXE);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette