Changeset 54204 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Feb 13, 2015 5:23:15 PM (10 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r54201 r54204 3754 3754 SUPR0DECL(int) SUPR0GetVmxUsability(bool *pfIsSmxModeAmbiguous) 3755 3755 { 3756 uint64_t u64FeatMsr; 3757 bool fMaybeSmxMode; 3758 bool fMsrLocked; 3759 bool fSmxVmxAllowed; 3760 bool fVmxAllowed; 3761 bool fIsSmxModeAmbiguous; 3762 int rc; 3763 3756 3764 Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD)); 3757 3765 3758 u int64_t u64FeatMsr = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);3759 bool constfMaybeSmxMode = RT_BOOL(ASMGetCR4() & X86_CR4_SMXE);3760 boolfMsrLocked = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_LOCK);3761 boolfSmxVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMXON);3762 boolfVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMXON);3763 boolfIsSmxModeAmbiguous = false;3764 intrc = VERR_INTERNAL_ERROR_5;3766 u64FeatMsr = ASMRdMsr(MSR_IA32_FEATURE_CONTROL); 3767 fMaybeSmxMode = RT_BOOL(ASMGetCR4() & X86_CR4_SMXE); 3768 fMsrLocked = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_LOCK); 3769 fSmxVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMXON); 3770 fVmxAllowed = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMXON); 3771 fIsSmxModeAmbiguous = false; 3772 rc = VERR_INTERNAL_ERROR_5; 3765 3773 3766 3774 /* Check if the LOCK bit is set but excludes the required VMXON bit. */ -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r54013 r54204 215 215 * - (none). 216 216 */ 217 #define SUPDRV_IOC_VERSION 0x001d000 1217 #define SUPDRV_IOC_VERSION 0x001d0002 218 218 219 219 /** SUP_IOCTL_COOKIE. */ -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r54013 r54204 280 280 CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION; 281 281 const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x001d0000 282 ? 0x001d000 1282 ? 0x001d0002 283 283 : SUPDRV_IOC_VERSION & 0xffff0000; 284 284 CookieReq.u.In.u32MinVersion = uMinVersion;
Note:
See TracChangeset
for help on using the changeset viewer.