Changeset 102691 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Dec 22, 2023 8:58:51 AM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 160858
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r102690 r102691 3168 3168 * Inserts variable-range MTRR MSR ranges based on the given count. 3169 3169 * 3170 * Since we need to insert the MSRs beyond what the CPU profile has inserted, we 3170 * Since we need to insert the MSRs beyond what the CPU profile has inserted, we 3171 3171 * reinsert the whole range here since the variable-range MTRR MSR read+write 3172 3172 * functions handle ranges as well as the \#GP checking. 3173 * 3173 * 3174 3174 * @returns VBox status code. 3175 3175 * @param pVM The cross context VM structure. 3176 * @param cVarMtrrs The number of variable-range MTRRs to insert. This must be 3176 * @param cVarMtrrs The number of variable-range MTRRs to insert. This must be 3177 3177 * less than or equal to CPUMCTX_MAX_MTRRVAR_COUNT. 3178 3178 */ … … 3557 3557 /** @cfgm{/CPUM/MtrrRead, boolean, false} 3558 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 3559 * MTRRs. When disabled, MTRRs are left blank, returns 0 on reads and ignores 3560 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 3561 * blank but some guests may expect their RAM to be mapped via MTRRs similar to 3562 3562 * real hardware. */ 3563 3563 rc = CFGMR3QueryBoolDef(pCpumCfg, "MtrrRead", &pVM->cpum.s.fMtrrRead, false); … … 3571 3571 { 3572 3572 /** @cfgm{/CPUM/MtrrVarCountIsVirtual, boolean, true} 3573 * When enabled, the number of variable-range MTRRs are virtualized. When disabled, 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 3575 * guests have problems with the virtualized variable-range MTRR count, it is 3576 * recommended to keep this enabled so that there are sufficient MTRRs to fully 3577 * describe all regions of the guest RAM. */ 3576 * recommended to keep this enabled so that there are sufficient MTRRs to fully 3577 * describe all regions of the guest RAM. */ 3578 3578 bool fMtrrVarCountIsVirt; 3579 3579 rc = CFGMR3QueryBoolDef(pCpumCfg, "MtrrVarCountIsVirtual", &fMtrrVarCountIsVirt, true);
Note:
See TracChangeset
for help on using the changeset viewer.