VirtualBox

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


Ignore:
Timestamp:
Sep 3, 2009 1:10:03 PM (15 years ago)
Author:
vboxsync
Message:

PGM pool: minor updates

File:
1 edited

Legend:

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

    r22742 r22745  
    13831383{
    13841384    unsigned cErrors = 0;
    1385     for (unsigned i = 0; i < RT_ELEMENTS(pShwPT->a); i++)
     1385#ifdef VBOX_STRICT
     1386    for (unsigned i = 0; i < pPage->iFirstPresent; i++)
     1387    {
     1388        Assert(!pShwPT->a[i].n.u1Present);
     1389    }
     1390#endif
     1391    for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++)
    13861392    {
    13871393        if (pShwPT->a[i].n.u1Present)
     
    14391445    unsigned cChanged = 0;
    14401446
    1441     for (unsigned i = 0; i < RT_ELEMENTS(pShwPT->a); i++)
     1447#ifdef VBOX_STRICT
     1448    for (unsigned i = 0; i < pPage->iFirstPresent; i++)
     1449    {
     1450        Assert(!pShwPT->a[i].n.u1Present);
     1451    }
     1452#endif
     1453    for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++)
    14421454    {
    14431455        if (pShwPT->a[i].n.u1Present)
     
    24752487    pgmLock(pVM);
    24762488
     2489#ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT
     2490    pgmPoolResetDirtyPages(pVM, true /* force removal. */);
     2491#endif
     2492
    24772493    /*
    24782494     * Iterate all the pages until we've encountered all that in use.
     
    24992515                case PGMPOOLKIND_PAE_PT_FOR_PAE_2MB:
    25002516                {
    2501 #ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT
    2502                     if (pPage->fDirty)
    2503                         pgmPoolFlushDirtyPage(pVM, pPool, pPage->idxDirty, true /* force removal */);
    2504 #endif
    25052517#ifdef PGMPOOL_WITH_USER_TRACKING
    25062518                    if (pPage->cPresent)
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