Changeset 16408 in vbox for trunk/src/VBox/VMM/PGM.cpp
- Timestamp:
- Jan 30, 2009 12:14:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r16376 r16408 4580 4580 4581 4581 4582 /**4583 * Inform PGM if we want all mappings to be put into the shadow page table. (necessary for e.g. VMX)4584 *4585 * @returns VBox status code.4586 * @param pVM VM handle.4587 * @param fEnable Enable or disable shadow mappings4588 */4589 VMMR3DECL(int) PGMR3ChangeShwPDMappings(PVM pVM, bool fEnable)4590 {4591 pVM->pgm.s.fDisableMappings = !fEnable;4592 4593 uint32_t cb;4594 int rc = PGMR3MappingsSize(pVM, &cb);4595 AssertRCReturn(rc, rc);4596 4597 /* Pretend the mappings are now fixed; to force a refresh of the reserved PDEs. */4598 rc = PGMR3MappingsFix(pVM, MM_HYPER_AREA_ADDRESS, cb);4599 AssertRCReturn(rc, rc);4600 4601 return VINF_SUCCESS;4602 }4603
Note:
See TracChangeset
for help on using the changeset viewer.