VirtualBox

Changeset 12407 in vbox for trunk


Ignore:
Timestamp:
Sep 11, 2008 3:28:42 PM (16 years ago)
Author:
vboxsync
Message:

Refined the PGM pool flush check. No need to flush when switching between real & protected mode.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pgm.h

    r11300 r12407  
    261261    PGMMODE_32BIT_HACK = 0x7fffffff
    262262} PGMMODE;
     263
     264/** Macro for checking if the guest is using paging.
     265 * @param uType     PGMMODE_*
     266 * @remark  ASSUMES certain order of the PGMMODE_* values.
     267 */
     268#define PGMMODE_WITH_PAGING(enmMode) (enmMode >= PGMMODE_32_BIT)
    263269
    264270/**
  • trunk/src/VBox/VMM/PGM.cpp

    r12405 r12407  
    32443244     * switch shadow paging mode (e.g. protected->32-bit) and shouldn't reuse
    32453245     * the shadow page tables.
     3246     *
     3247     * That only applies when switching between paging and non-paging modes.
     3248     *
     3249     * @todo A20 setting
    32463250     */
    32473251    if (   pVM->pgm.s.CTXSUFF(pPool)
    3248         && pVM->pgm.s.enmGuestMode != enmGuestMode)
     3252        && PGMMODE_WITH_PAGING(pVM->pgm.s.enmGuestMode) != PGMMODE_WITH_PAGING(enmGuestMode))
    32493253    {
    32503254        Log(("PGMR3ChangeMode: changing guest paging mode -> flush pgm pool cache!\n"));
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