VirtualBox

Ignore:
Timestamp:
Feb 13, 2015 5:23:15 PM (10 years ago)
Author:
vboxsync
Message:

HostDrivers/Support: bump IOC minor version and declaration of var. fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r54201 r54204  
    37543754SUPR0DECL(int) SUPR0GetVmxUsability(bool *pfIsSmxModeAmbiguous)
    37553755{
     3756    uint64_t   u64FeatMsr;
     3757    bool       fMaybeSmxMode;
     3758    bool       fMsrLocked;
     3759    bool       fSmxVmxAllowed;
     3760    bool       fVmxAllowed;
     3761    bool       fIsSmxModeAmbiguous;
     3762    int        rc;
     3763
    37563764    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    37573765
    3758     uint64_t   u64FeatMsr          = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
    3759     bool const fMaybeSmxMode       = RT_BOOL(ASMGetCR4() & X86_CR4_SMXE);
    3760     bool       fMsrLocked          = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_LOCK);
    3761     bool       fSmxVmxAllowed      = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_SMX_VMXON);
    3762     bool       fVmxAllowed         = RT_BOOL(u64FeatMsr & MSR_IA32_FEATURE_CONTROL_VMXON);
    3763     bool       fIsSmxModeAmbiguous = false;
    3764     int        rc                  = 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;
    37653773
    37663774    /* Check if the LOCK bit is set but excludes the required VMXON bit. */
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