VirtualBox

Changeset 17012 in vbox


Ignore:
Timestamp:
Feb 23, 2009 12:31:14 PM (16 years ago)
Author:
vboxsync
Message:

VBOX_WITH_PGMPOOL_PAGING_ONLY: always activate and deactivate mappings in the CR3 shadow page table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllMap.cpp

    r17007 r17012  
    509509
    510510    /*
    511      * Can skip this if mappings are safely fixed.
    512      */
    513     if (pVM->pgm.s.fMappingsFixed)
     511     * Can skip this if mappings are disabled.
     512     */
     513    if (!pgmMapAreMappingsEnabled(&pVM->pgm.s))
    514514        return;
    515515
     
    545545    Log(("PGMMapActivateAll fixed mappings=%d\n", pVM->pgm.s.fMappingsFixed));
    546546
     547#ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
     548    /*
     549     * Can skip this if mappings are disabled.
     550     */
     551    if (!pgmMapAreMappingsEnabled(&pVM->pgm.s))
     552#else
    547553    /*
    548554     * Can skip this if mappings are safely fixed.
    549555     */
    550556    if (pVM->pgm.s.fMappingsFixed)
     557#endif
    551558        return VINF_SUCCESS;
    552559
     
    582589    Log(("PGMMapDeactivateAll fixed mappings=%d\n", pVM->pgm.s.fMappingsFixed));
    583590
     591#ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
     592    /*
     593     * Can skip this if mappings are disabled.
     594     */
     595    if (!pgmMapAreMappingsEnabled(&pVM->pgm.s))
     596#else
    584597    /*
    585598     * Can skip this if mappings are safely fixed.
    586599     */
    587600    if (pVM->pgm.s.fMappingsFixed)
     601#endif
    588602        return VINF_SUCCESS;
    589603
     
    619633int pgmMapDeactivateCR3(PVM pVM, PPGMPOOLPAGE pShwPageCR3)
    620634{
     635#ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
     636    /*
     637     * Can skip this if mappings are disabled.
     638     */
     639    if (!pgmMapAreMappingsEnabled(&pVM->pgm.s))
     640#else
    621641    /*
    622642     * Can skip this if mappings are safely fixed.
    623643     */
    624644    if (pVM->pgm.s.fMappingsFixed)
     645#endif
    625646        return VINF_SUCCESS;
    626647
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