VirtualBox

Changeset 102851 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jan 12, 2024 8:13:24 AM (12 months ago)
Author:
vboxsync
Message:

VMM/CPUM: bugref:10498 MTRR CFGM setting naming nit and comment.

File:
1 edited

Legend:

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

    r102781 r102851  
    35413541        {
    35423542            /** @cfgm{/CPUM/MtrrWrite, boolean, true}
    3543              * Whether to enable MTRR read+write support. When enabled, this automatically
    3544              * enables MTRR read support as well. */
    3545             bool fEnableMtrrWrite;
    3546             rc = CFGMR3QueryBoolDef(pCpumCfg, "MtrrWrite", &fEnableMtrrWrite,
     3543             * Whether to enable MTRR read-write support. This overrides the MTRR read-only CFGM
     3544             * setting. */
     3545            bool fEnableMtrrReadWrite;
     3546            rc = CFGMR3QueryBoolDef(pCpumCfg, "MtrrReadWrite", &fEnableMtrrReadWrite,
    35473547                                    true /** @todo true - 2023-12-12 bird: does not work yet, so disabled it */);
    35483548            AssertRCReturn(rc, rc);
    3549             if (fEnableMtrrWrite)
     3549            if (fEnableMtrrReadWrite)
    35503550            {
    35513551                pVM->cpum.s.fMtrrRead  = true;
     
    35553555            else
    35563556            {
    3557                 /** @cfgm{/CPUM/MtrrRead, boolean, false}
    3558                  * Whether to enable MTRR read support and to initialize mapping of guest memory via
    3559                  * MTRRs. When disabled, MTRRs are left blank, returns 0 on reads and ignores
    3560                  * writes. Some guests like GNU/Linux recognize a virtual system when MTRRs are left
    3561                  * blank but some guests may expect their RAM to be mapped via MTRRs similar to
    3562                  * real hardware. */
    3563                 rc = CFGMR3QueryBoolDef(pCpumCfg, "MtrrRead", &pVM->cpum.s.fMtrrRead, false);
     3557                /** @cfgm{/CPUM/MtrrReadOnly, boolean, false}
     3558                 * Whether to enable MTRR read-only support and to initialize mapping of guest
     3559                 * memory via MTRRs. When disabled, MTRRs are left blank, returns 0 on reads and
     3560                 * ignores writes. Some guests like GNU/Linux recognize a virtual system when MTRRs
     3561                 * are left blank but some guests may expect their RAM to be mapped via MTRRs
     3562                 * similar to real hardware. */
     3563                rc = CFGMR3QueryBoolDef(pCpumCfg, "MtrrReadOnly", &pVM->cpum.s.fMtrrRead, false);
    35643564                AssertRCReturn(rc, rc);
    35653565                LogRel(("CPUM: Enabled MTRR read-only support\n"));
     
    35733573                 * When enabled, the number of variable-range MTRRs are virtualized. When disabled,
    35743574                 * the number of variable-range MTRRs are derived from the CPU profile. Unless
    3575                  * guests have problems with the virtualized variable-range MTRR count, it is
     3575                 * guests have problems with a virtualized number of variable-range MTRRs, it is
    35763576                 * recommended to keep this enabled so that there are sufficient MTRRs to fully
    35773577                 * describe all regions of the guest RAM. */
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