VirtualBox

儲存庫 vbox 的更動 12407


忽略:
時間撮記:
2008-9-11 下午03:28:42 (16 年 以前)
作者:
vboxsync
訊息:

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

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • 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"));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette