VirtualBox

Changeset 79804 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 16, 2019 9:55:32 AM (5 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:9180 Fix determining the VMX max physical address width (reported in IA32_VMX_BASIC MSR). It's derived from long mode (whether the guest is a 64-bit capable CPU or not) and if we clear/change it, we adjust this as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r78632 r79804  
    47524752            pVM->cpum.s.aGuestCpuIdPatmExt[1].uEdx = pLeaf->uEdx |= X86_CPUID_EXT_FEATURE_EDX_LONG_MODE;
    47534753            pVM->cpum.s.GuestFeatures.fLongMode = 1;
     4754            pVM->cpum.s.GuestFeatures.cVmxMaxPhysAddrWidth = pVM->cpum.s.GuestFeatures.cMaxPhysAddrWidth;
    47544755            LogRel(("CPUM: SetGuestCpuIdFeature: Enabled LONG MODE\n"));
    47554756            break;
     
    50715072                pVM->cpum.s.aGuestCpuIdPatmExt[1].uEdx = pLeaf->uEdx &= ~X86_CPUID_EXT_FEATURE_EDX_LONG_MODE;
    50725073            pVM->cpum.s.GuestFeatures.fLongMode = 0;
     5074            pVM->cpum.s.GuestFeatures.cVmxMaxPhysAddrWidth = 32;
    50735075            break;
    50745076
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