VirtualBox

Changeset 43163 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 4, 2012 2:12:53 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80548
Message:

VMM: A wee bit page pool paranoia related to #6349.

File:
1 edited

Legend:

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

    r42700 r43163  
    20372037         * Call pgmPoolCacheUsed to move the page to the head of the age list.
    20382038         */
    2039         if (!pgmPoolIsPageLocked(pPage))
     2039        if (   !pgmPoolIsPageLocked(pPage)
     2040            && pPage->idx >= PGMPOOL_IDX_FIRST /* paranoia (#6349) */)
    20402041            break;
    20412042        LogFlow(("pgmPoolCacheFreeOne: refuse CR3 mapping\n"));
     
    47834784
    47844785    /*
    4785      * Quietly reject any attempts at flushing any of the special root pages.
    4786      */
    4787     if (pPage->idx < PGMPOOL_IDX_FIRST)
    4788     {
    4789         AssertFailed(); /* can no longer happen */
    4790         Log(("pgmPoolFlushPage: special root page, rejected. enmKind=%s idx=%d\n", pgmPoolPoolKindToStr(pPage->enmKind), pPage->idx));
    4791         return VINF_SUCCESS;
    4792     }
     4786     * Reject any attempts at flushing any of the special root pages (shall
     4787     * not happen).
     4788     */
     4789    AssertMsgReturn(pPage->idx >= PGMPOOL_IDX_FIRST,
     4790                    ("pgmPoolFlushPage: special root page, rejected. enmKind=%s idx=%d\n",
     4791                     pgmPoolPoolKindToStr(pPage->enmKind), pPage->idx),
     4792                    VINF_SUCCESS);
    47934793
    47944794    pgmLock(pVM);
     
    49034903    LogFlow(("pgmPoolFreeByPage: pPage=%p:{.Key=%RHp, .idx=%d, enmKind=%s} iUser=%d iUserTable=%#x\n",
    49044904             pPage, pPage->Core.Key, pPage->idx, pgmPoolPoolKindToStr(pPage->enmKind), iUser, iUserTable));
    4905     Assert(pPage->idx >= PGMPOOL_IDX_FIRST);
     4905    AssertReturnVoid(pPage->idx >= PGMPOOL_IDX_FIRST); /* paranoia (#6349) */
     4906
    49064907    pgmLock(pVM);
    49074908    pgmPoolTrackFreeUser(pPool, pPage, iUser, iUserTable);
Note: See TracChangeset for help on using the changeset viewer.

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