Changeset 57055 in vbox for trunk/src/VBox
- Timestamp:
- Jul 22, 2015 1:45:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r57053 r57055 3794 3794 fMaybeSmxMode = RT_BOOL(ASMGetCR4() & X86_CR4_SMXE); 3795 3795 fMsrLocked = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_LOCK); 3796 fSmxVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMX );3797 fVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMX );3796 fSmxVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMXON); 3797 fVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMXON); 3798 3798 fIsSmxModeAmbiguous = false; 3799 3799 rc = VERR_INTERNAL_ERROR_5; … … 3855 3855 3856 3856 u64FeatMsr |= MSR_IA32_FEATURE_CONTROL_LOCK 3857 | MSR_IA32_FEATURE_CONTROL_VMX ;3857 | MSR_IA32_FEATURE_CONTROL_VMXON; 3858 3858 if (fSmxVmxHwSupport) 3859 u64FeatMsr |= MSR_IA32_FEATURE_CONTROL_SMX_VMX ;3859 u64FeatMsr |= MSR_IA32_FEATURE_CONTROL_SMX_VMXON; 3860 3860 3861 3861 /* … … 3868 3868 */ 3869 3869 u64FeatMsr = ASMRdMsr(MSR_IA32_FEATURE_CONTROL); 3870 #if 0 3871 /* Workaround for what is really a KVM bug. See @bugref{6208} comment #48. */ 3872 if (fFeaturesECX & X86_CPUID_FEATURE_ECX_HVP) 3873 { 3874 uint32_t uEax, uEbx, uEcx, uEdx; 3875 ASMCpuId(0x40000000, &uDummy, &uVendorEBX, &uVendorECX, &uVendorEDX); 3876 if ( uEbx == 0x4B4D564B /* 'KVMK' */ 3877 && uEcx == 0x564B4D56 /* 'VMKV' */ 3878 && uEdx == 0x0000004D) /* 'M000' */ 3879 fMsrLocked = true; 3880 } 3881 else 3882 #endif 3883 fMsrLocked = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_LOCK); 3884 3870 fMsrLocked = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_LOCK); 3885 3871 if (fMsrLocked) 3886 3872 { 3887 fSmxVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMX );3888 fVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMX );3873 fSmxVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMXON); 3874 fVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMXON); 3889 3875 if ( fVmxAllowed 3890 3876 && ( !fSmxVmxHwSupport
Note:
See TracChangeset
for help on using the changeset viewer.