VirtualBox

Changeset 43047 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 28, 2012 2:47:29 PM (12 years ago)
Author:
vboxsync
Message:

VMM: Must flush changes pending in the handy page array before freeing memory. There may be requests to free shared pages in there, esp. in a guest shutdown scenario.

File:
1 edited

Legend:

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

    r43045 r43047  
    20592059
    20602060#ifdef VBOX_WITH_PAGE_SHARING
    2061     /* Clear all registered shared modules. */
     2061    /*
     2062     * Clear all registered shared modules.
     2063     */
    20622064    pgmR3PhysAssertSharedPageChecksums(pVM);
    20632065    rc = GMMR3ResetSharedModules(pVM);
    20642066    AssertRC(rc);
     2067
     2068    /*
     2069     * Flush the handy pages updates to make sure no shared pages are hiding
     2070     * in there.  (No unlikely if the VM shuts down, apparently.)
     2071     */
     2072    rc = VMMR3CallR0(pVM, VMMR0_DO_PGM_FLUSH_HANDY_PAGES, 0, NULL);
    20652073#endif
    20662074
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