VirtualBox

Changeset 28257 in vbox


Ignore:
Timestamp:
Apr 13, 2010 2:43:35 PM (15 years ago)
Author:
vboxsync
Message:

Some more paranoid checks

File:
1 edited

Legend:

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

    r28123 r28257  
    11601160    {
    11611161        Log(("Possible page reuse cMods=%d -> %d (locked=%d type=%s)\n", pPage->cModifications, pPage->cModifications * 2, pgmPoolIsPageLocked(&pVM->pgm.s, pPage), pgmPoolPoolKindToStr(pPage->enmKind)));
     1162        Assert(pPage->cModifications < 32000);
    11621163        pPage->cModifications           = pPage->cModifications * 2;
    11631164        pPage->pvLastAccessHandlerFault = pvFault;
     
    11971198             */
    11981199            if (   rc == VINF_SUCCESS
     1200                && !pPage->cLocked                      /* only applies to unlocked pages as we can't free locked ones (e.g. cr3 root). */
    11991201                && pDis->pCurInstr->opcode == OP_MOV
    12001202                && (pvFault & PAGE_OFFSET_MASK) == 0)
     
    48334835    pPage->iModifiedNext = NIL_PGMPOOL_IDX;
    48344836    pPage->iModifiedPrev = NIL_PGMPOOL_IDX;
     4837    pPage->cLocked  = 0;
    48354838    pPage->cPresent = 0;
    48364839    pPage->iFirstPresent = NIL_PGMPOOL_PRESENT_INDEX;
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