VirtualBox

Changeset 57055 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 22, 2015 1:45:19 PM (9 years ago)
Author:
vboxsync
Message:

SUPDrv: Remove the KVM hack, it only affects <= 3.8 linux kernels, implemented in 3.12+. Undid some incorrect typo fixes.

File:
1 edited

Legend:

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

    r57053 r57055  
    37943794    fMaybeSmxMode       = RT_BOOL(ASMGetCR4() & X86_CR4_SMXE);
    37953795    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);
    37983798    fIsSmxModeAmbiguous = false;
    37993799    rc                  = VERR_INTERNAL_ERROR_5;
     
    38553855
    38563856        u64FeatMsr |= MSR_IA32_FEATURE_CONTROL_LOCK
    3857                     | MSR_IA32_FEATURE_CONTROL_VMX;
     3857                    | MSR_IA32_FEATURE_CONTROL_VMXON;
    38583858        if (fSmxVmxHwSupport)
    3859             u64FeatMsr |= MSR_IA32_FEATURE_CONTROL_SMX_VMX;
     3859            u64FeatMsr |= MSR_IA32_FEATURE_CONTROL_SMX_VMXON;
    38603860
    38613861        /*
     
    38683868         */
    38693869        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);
    38853871        if (fMsrLocked)
    38863872        {
    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);
    38893875            if (   fVmxAllowed
    38903876                && (   !fSmxVmxHwSupport
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