VirtualBox

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


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

VMM/VMMR0: HM bits.

Location:
trunk/src/VBox/VMM
Files:
2 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;
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r43746 r43756  
    985985            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_LOAD_DEBUG)
    986986                LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_LOAD_DEBUG\n"));
    987             if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_IA64_MODE)
    988                 LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_IA64_MODE\n"));
     987            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_IA32E_MODE_GUEST)
     988                LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_IA32E_MODE_GUEST\n"));
    989989            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_ENTRY_SMM)
    990990                LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_ENTRY_SMM\n"));
     
    10001000            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_LOAD_DEBUG)
    10011001                LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_LOAD_DEBUG *must* be set\n"));
    1002             if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_IA64_MODE)
    1003                 LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_IA64_MODE *must* be set\n"));
     1002            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_IA32E_MODE_GUEST)
     1003                LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_IA32E_MODE_GUEST *must* be set\n"));
    10041004            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_ENTRY_SMM)
    10051005                LogRel(("HM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_ENTRY_SMM *must* be set\n"));
     
    10171017            if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_SAVE_DEBUG)
    10181018                LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_SAVE_DEBUG\n"));
    1019             if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64)
    1020                 LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64\n"));
     1019            if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE)
     1020                LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE\n"));
    10211021            if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_ACK_EXTERNAL_IRQ)
    10221022                LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_ACK_EXTERNAL_IRQ\n"));
     
    10341034            if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_SAVE_DEBUG)
    10351035                LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_SAVE_DEBUG *must* be set\n"));
    1036             if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64)
    1037                 LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64 *must* be set\n"));
     1036            if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE)
     1037                LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_ADDR_SPACE_SIZE *must* be set\n"));
    10381038            if (val & VMX_VMCS_CTRL_EXIT_CONTROLS_ACK_EXTERNAL_IRQ)
    10391039                LogRel(("HM:    VMX_VMCS_CTRL_EXIT_CONTROLS_ACK_EXTERNAL_IRQ *must* be set\n"));
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