VirtualBox

Changeset 42857 in vbox for trunk


Ignore:
Timestamp:
Aug 17, 2012 5:09:06 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80122
Message:

VMM/HWVMXR0: Ignore EFER MSR auto store/load as we intercept all accesses to it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r42816 r42857  
    13481348        unsigned idxMsr = 0;
    13491349
    1350         /*
    1351          * Check if EFER MSR present.
    1352          */
    13531350        uint32_t u32HostExtFeatures = ASMCpuId_EDX(0x80000001);
    13541351        if (u32HostExtFeatures & (X86_CPUID_EXT_FEATURE_EDX_NX | X86_CPUID_EXT_FEATURE_EDX_LONG_MODE))
     
    13621359            }
    13631360
     1361#if 0
    13641362            pMsr->u32IndexMSR = MSR_K6_EFER;
    13651363            pMsr->u32Reserved = 0;
     
    13741372                pMsr->u64Value    = ASMRdMsr(MSR_K6_EFER);
    13751373            pMsr++; idxMsr++;
     1374#endif
    13761375        }
    13771376
     
    21532152    CPUMGetGuestCpuId(pVCpu, 0x80000001, &u32Temp, &u32Temp, &u32Temp, &u32GstExtFeatures);
    21542153
    2155     /*
    2156      * Check if EFER MSR present.
    2157      */
    21582154    if (u32GstExtFeatures & (X86_CPUID_EXT_FEATURE_EDX_NX | X86_CPUID_EXT_FEATURE_EDX_LONG_MODE))
    21592155    {
     2156#if 0
    21602157        pMsr->u32IndexMSR = MSR_K6_EFER;
    21612158        pMsr->u32Reserved = 0;
     
    21652162            pMsr->u64Value &= ~(MSR_K6_EFER_LMA | MSR_K6_EFER_LME);
    21662163        pMsr++; idxMsr++;
     2164#endif
    21672165
    21682166        if (u32GstExtFeatures & X86_CPUID_EXT_FEATURE_EDX_LONG_MODE)
     
    24252423                CPUMSetGuestMsr(pVCpu, MSR_K8_TSC_AUX, pMsr->u64Value);
    24262424                break;
     2425#if 0
    24272426            case MSR_K6_EFER:
    24282427                /* EFER can't be changed without causing a VM-exit. */
    24292428                /* Assert(pCtx->msrEFER == pMsr->u64Value); */
    24302429                break;
     2430#endif
    24312431            default:
    24322432                AssertFailed();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette