VirtualBox

Changeset 21587 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 14, 2009 3:50:00 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50080
Message:

Make sure we turn off X86_CR4_VME if we are in emulated real mode (VT-x)

File:
1 edited

Legend:

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

    r21585 r21587  
    15111511        }
    15121512
     1513        /* Turn off VME if we're in emulated real mode. */
     1514        if (CPUMIsGuestInRealModeEx(pCtx))
     1515            val &= ~X86_CR4_VME;
     1516
    15131517        rc |= VMXWriteVMCS64(VMX_VMCS64_GUEST_CR4,            val);
    15141518        Log2(("Guest CR4 %08x\n", val));
     
    15171521         */
    15181522        val =   0
     1523              | X86_CR4_VME
    15191524              | X86_CR4_PAE
    15201525              | X86_CR4_PGE
Note: See TracChangeset for help on using the changeset viewer.

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