Changeset 102851 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Jan 12, 2024 8:13:24 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r102781 r102851 3541 3541 { 3542 3542 /** @cfgm{/CPUM/MtrrWrite, boolean, true} 3543 * Whether to enable MTRR read +write support. When enabled, this automatically3544 * enables MTRR read support as well. */3545 bool fEnableMtrr Write;3546 rc = CFGMR3QueryBoolDef(pCpumCfg, "Mtrr Write", &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, 3547 3547 true /** @todo true - 2023-12-12 bird: does not work yet, so disabled it */); 3548 3548 AssertRCReturn(rc, rc); 3549 if (fEnableMtrr Write)3549 if (fEnableMtrrReadWrite) 3550 3550 { 3551 3551 pVM->cpum.s.fMtrrRead = true; … … 3555 3555 else 3556 3556 { 3557 /** @cfgm{/CPUM/MtrrRead , boolean, false}3558 * Whether to enable MTRR read support and to initialize mapping of guest memory via3559 * MTRRs. When disabled, MTRRs are left blank, returns 0 on reads and ignores3560 * writes. Some guests like GNU/Linux recognize a virtual system when MTRRs are left3561 * blank but some guests may expect their RAM to be mapped via MTRRs similar to3562 * 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); 3564 3564 AssertRCReturn(rc, rc); 3565 3565 LogRel(("CPUM: Enabled MTRR read-only support\n")); … … 3573 3573 * When enabled, the number of variable-range MTRRs are virtualized. When disabled, 3574 3574 * 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 is3575 * guests have problems with a virtualized number of variable-range MTRRs, it is 3576 3576 * recommended to keep this enabled so that there are sufficient MTRRs to fully 3577 3577 * describe all regions of the guest RAM. */
Note:
See TracChangeset
for help on using the changeset viewer.