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.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
3 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. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r54013 r54204  
    215215 *          - (none).
    216216 */
    217 #define SUPDRV_IOC_VERSION                              0x001d0001
     217#define SUPDRV_IOC_VERSION                              0x001d0002
    218218
    219219/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r54013 r54204  
    280280        CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION;
    281281        const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x001d0000
    282                                    ? 0x001d0001
     282                                   ? 0x001d0002
    283283                                   : SUPDRV_IOC_VERSION & 0xffff0000;
    284284        CookieReq.u.In.u32MinVersion = uMinVersion;
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