VirtualBox

Changeset 57036 in vbox for trunk


Ignore:
Timestamp:
Jul 21, 2015 9:54:36 AM (9 years ago)
Author:
vboxsync
Message:

VMM/HM: Log when we IA32_FEATURE_CONTROL MSR does not have the lock bit set.

File:
1 edited

Legend:

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

    r56876 r57036  
    10391039    LogRel(("HM: Host EFER                       = %#RX64\n", pVM->hm.s.vmx.u64HostEfer));
    10401040    LogRel(("HM: MSR_IA32_FEATURE_CONTROL        = %#RX64\n", pVM->hm.s.vmx.Msrs.u64FeatureCtrl));
     1041    if (!(pVM->hm.s.vmx.Msrs.u64FeatureCtrl & MSR_IA32_FEATURE_CONTROL_LOCK))
     1042    {
     1043        uint32_t fFeaturesECX, uDummy;
     1044        ASMCpuId(1, &uDummy, &uDummy, &fFeaturesECX, &uDummy);
     1045        bool fHvp = RT_BOOL(fFeaturesECX & X86_CPUID_FEATURE_ECX_HVP);
     1046        LogRel(("HM:   IA32_FEATURE_CONTROL lock bit not set, buggy %s\n", fHvp ? "hypervisor" : "hardware"));
     1047    }
    10411048    LogRel(("HM: MSR_IA32_VMX_BASIC_INFO         = %#RX64\n", pVM->hm.s.vmx.Msrs.u64BasicInfo));
    10421049    LogRel(("HM:   VMCS id                             = %#x\n", MSR_IA32_VMX_BASIC_INFO_VMCS_ID(pVM->hm.s.vmx.Msrs.u64BasicInfo)));
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