VirtualBox

Changeset 17133 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 25, 2009 2:10:04 PM (16 years ago)
Author:
vboxsync
Message:

Correction of modification counter change.

File:
1 edited

Legend:

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

    r17129 r17133  
    922922    {
    923923        LogFlow(("pgmPoolIsActiveRootPage found CR3 root\n"));
    924         pPage->cModifications = 1; /* reset counter (can't use 0, or else it will be reinserted in the modified list) */
     924        if (pPage->cModifications)
     925            pPage->cModifications = 1; /* reset counter (can't use 0, or else it will be reinserted in the modified list) */
    925926        return true;
    926927    }
     
    950951                            Assert(pPdpt->a[i].n.u1Present);
    951952                            LogFlow(("pgmPoolIsActiveRootPage found PAE PDPE root\n"));
    952                             pPage->cModifications = 1; /* reset counter (can't use 0, or else it will be reinserted in the modified list) */
     953                            if (pPage->cModifications)
     954                                pPage->cModifications = 1; /* reset counter (can't use 0, or else it will be reinserted in the modified list) */
    953955                            return true;
    954956                        }
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