VirtualBox

Changeset 102523 in vbox


Ignore:
Timestamp:
Dec 7, 2023 1:39:07 PM (12 months ago)
Author:
vboxsync
Message:

VMM/CPUM: bugref:10498 Enable MTRR storage without populating variable-range MTRRs.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r102410 r102523  
    47084708                    pCtxMsrs->msr.MtrrFix4K_F0000  = 0x0505050505050505;
    47094709                    pCtxMsrs->msr.MtrrFix4K_F8000  = 0x0505050505050505;
    4710                     pCtxMsrs->msr.aMtrrVarMsrs[0].MtrrPhysBase = GCPhysFirst   | X86_MTRR_MT_WB;
    4711                     pCtxMsrs->msr.aMtrrVarMsrs[0].MtrrPhysMask = fMtrrPhysMask | MSR_IA32_MTRR_PHYSMASK_VALID;
     4710                    //pCtxMsrs->msr.aMtrrVarMsrs[0].MtrrPhysBase = GCPhysFirst   | X86_MTRR_MT_WB;
     4711                    //pCtxMsrs->msr.aMtrrVarMsrs[0].MtrrPhysMask = fMtrrPhysMask | MSR_IA32_MTRR_PHYSMASK_VALID;
    47124712                }
    47134713                LogRel(("CPUM: Initialized MTRRs (fMtrrPhysMask=%RGp GCPhysLast=%RGp)\n", fMtrrPhysMask, GCPhysLast));
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r102391 r102523  
    32873287            /* Check if MTRR read+write support is enabled. */
    32883288            bool fEnableMtrrWrite;
    3289             rc = CFGMR3QueryBoolDef(pCpumCfg, "MTRRWrite", &fEnableMtrrWrite, false);
     3289            rc = CFGMR3QueryBoolDef(pCpumCfg, "MTRRWrite", &fEnableMtrrWrite, true);
    32903290            AssertRCReturn(rc, rc);
    32913291            if (fEnableMtrrWrite)
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