VirtualBox

Changeset 29303 in vbox for trunk/src/VBox/VMM/PGMPhys.cpp


Ignore:
Timestamp:
May 10, 2010 1:02:04 PM (15 years ago)
Author:
vboxsync
Message:

Clear the tracking data of pages we're going to reactivate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMPhys.cpp

    r29302 r29303  
    21762176    {
    21772177        RTGCPHYS cb = pCur->RamRange.cb;
     2178
     2179        /* Clear the tracking data of pages we're going to reactivate. */
     2180        PPGMPAGE pPageSrc = &pCur->RamRange.aPages[0];
     2181        uint32_t cPagesLeft = pCur->RamRange.cb >> PAGE_SHIFT;
     2182        while (cPagesLeft-- > 0)
     2183        {
     2184            PGM_PAGE_SET_TRACKING(pPageSrc, 0);
     2185            PGM_PAGE_SET_PTE_INDEX(pPageSrc, 0);
     2186            pPageSrc++;
     2187        }
    21782188
    21792189        /* link in the ram range */
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