VirtualBox

Changeset 27749 in vbox for trunk/src


Ignore:
Timestamp:
Mar 26, 2010 2:57:58 PM (15 years ago)
Author:
vboxsync
Message:

Flush before freeing the page.

File:
1 edited

Legend:

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

    r27746 r27749  
    819819            LogFlow(("balloon page: %RGp\n", paPhysPage[i]));
    820820
     821            /* Flush the shadow PT if this page was previously used as a guest page table. */
     822            pgmPoolFlushPageByGCPhys(pVM, paPhysPage[i]);
     823
    821824            rc = pgmPhysFreePage(pVM, pReq, &cPendingPages, pPage, paPhysPage[i]);
    822825            if (RT_FAILURE(rc))
     
    828831            Assert(PGM_PAGE_IS_ZERO(pPage));
    829832            PGM_PAGE_SET_STATE(pPage, PGM_PAGE_STATE_BALLOONED);
    830 
    831             /* Flush the shadow PT if this page was previously used as a guest page table. */
    832             pgmPoolFlushPageByGCPhys(pVM, paPhysPage[i]);
    833833        }
    834834
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