VirtualBox

Changeset 43756 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Oct 26, 2012 1:16:41 PM (12 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: HM bits.

File:
1 edited

Legend:

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

    r43746 r43756  
    16761676
    16771677    if (CPUMIsGuestInLongModeEx(pCtx))
    1678         val |= VMX_VMCS_CTRL_ENTRY_CONTROLS_IA64_MODE;
     1678        val |= VMX_VMCS_CTRL_ENTRY_CONTROLS_IA32E_MODE_GUEST;
    16791679    /* else Must be zero when AMD64 is not available. */
    16801680
     
    17001700#if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    17011701    if (VMX_IS_64BIT_HOST_MODE())
    1702         val |= VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64;
     1702        val |= VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE;
    17031703    /* else Must be zero when AMD64 is not available. */
    17041704#elif HC_ARCH_BITS == 32 && defined(VBOX_ENABLE_64_BITS_GUESTS)
    17051705    if (CPUMIsGuestInLongModeEx(pCtx))
    1706         val |= VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64;      /* our switcher goes to long mode */
     1706        val |= VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE;      /* our switcher goes to long mode */
    17071707    else
    1708         Assert(!(val & VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64));
     1708        Assert(!(val & VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE));
    17091709#endif
    17101710    val &= pVM->hm.s.vmx.msr.vmx_exit.n.allowed1;
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