VirtualBox

Changeset 9956 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 26, 2008 2:19:39 PM (16 years ago)
Author:
vboxsync
Message:

Quietly reject any attempts at flushing the currently active shadow CR3 mapping.

File:
1 edited

Legend:

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

    r9955 r9956  
    24582458    u.pau64 = (uint64_t *)PGMPOOL_PAGE_2_PTR(pPool->CTXSUFF(pVM), pUserPage);
    24592459
     2460    /* Safety precaution in case we change the paging for other modes too in the future. */
     2461    Assert(PGMGetHyperCR3(CTXSUFF(pPool->pVM)) != pPage->Core.Key);
     2462
    24602463#ifdef VBOX_STRICT
    24612464    /*
     
    34333436    if (pPage->idx < PGMPOOL_IDX_FIRST)
    34343437    {
    3435         Log(("pgmPoolFlushPage: specaial root page, rejected. enmKind=%d idx=%d\n", pPage->enmKind, pPage->idx));
     3438        Log(("pgmPoolFlushPage: special root page, rejected. enmKind=%d idx=%d\n", pPage->enmKind, pPage->idx));
    34363439        return VINF_SUCCESS;
    34373440    }
     3441
     3442    /*
     3443     * Quietly reject any attempts at flushing the currently active shadow CR3 mapping
     3444     */
     3445    if (    pPage->idx == PGMPOOL_IDX_AMD64_CR3
     3446        &&  PGMGetHyperCR3(CTXSUFF(pPool->pVM)) != pPage->Core.Key)
     3447    {
     3448        Log(("pgmPoolFlushPage: current active shadow CR3, rejected. enmKind=%d idx=%d\n", pPage->enmKind, pPage->idx));
     3449        return VINF_SUCCESS;
     3450    }
     3451    /* Safety precaution in case we change the paging for other modes too in the future. */
     3452    AssertFatal(PGMGetHyperCR3(CTXSUFF(pPool->pVM)) != pPage->Core.Key);
    34383453
    34393454    /*
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