VirtualBox

Changeset 12405 in vbox for trunk


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

We must flush the PGM pool cache if the guest mode changes; we don't always
switch shadow paging mode (e.g. protected->32-bit) and shouldn't reuse
the shadow page tables. (#3115 OS/2 guests)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r12300 r12405  
    31803180
    31813181    }
     3182    else
     3183        LogFlow(("PGMR3ChangeMode: Shadow mode remains: %s\n",  PGMGetModeName(pVM->pgm.s.enmShadowMode)));
    31823184
    31833185    /* guest */
     
    32373239            return rc;
    32383240        }
     3241    }
     3242
     3243    /* We must flush the PGM pool cache if the guest mode changes; we don't always
     3244     * switch shadow paging mode (e.g. protected->32-bit) and shouldn't reuse
     3245     * the shadow page tables.
     3246     */
     3247    if (   pVM->pgm.s.CTXSUFF(pPool)
     3248        && pVM->pgm.s.enmGuestMode != enmGuestMode)
     3249    {
     3250        Log(("PGMR3ChangeMode: changing guest paging mode -> flush pgm pool cache!\n"));
     3251        pgmPoolFlushAll(pVM);
    32393252    }
    32403253
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