VirtualBox

Changeset 27197 in vbox


Ignore:
Timestamp:
Mar 9, 2010 9:43:50 AM (15 years ago)
Author:
vboxsync
Message:

Refresh the balloon a bit later during state restore.

File:
1 edited

Legend:

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

    r27183 r27197  
    27682768    {
    27692769        if (uVersion > PGM_SAVED_STATE_VERSION_PRE_BALLOON)
    2770         {
    27712770            rc = SSMR3GetStruct(pSSM, pPGM, &s_aPGMFields[0]);
    2772             if (    RT_SUCCESS(rc)
    2773                 &&  pVM->pgm.s.cBalloonedPages)
    2774             {
    2775                 rc = GMMR3BalloonedPages(pVM, GMMBALLOONACTION_INFLATE, pVM->pgm.s.cBalloonedPages);
    2776                 AssertRC(rc);
    2777             }
    2778         }
    27792771        else
    27802772            rc = SSMR3GetStruct(pSSM, pPGM, &s_aPGMFieldsPreBalloon[0]);
     
    28862878    else
    28872879        rc = pgmR3LoadMemoryOld(pVM, pSSM, uVersion);
     2880
     2881    /* Refresh balloon accounting. */
     2882    if (pVM->pgm.s.cBalloonedPages)
     2883    {
     2884        rc = GMMR3BalloonedPages(pVM, GMMBALLOONACTION_INFLATE, pVM->pgm.s.cBalloonedPages);
     2885        AssertRC(rc);
     2886    }
    28882887    return rc;
    28892888}
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