VirtualBox

Changeset 27597 in vbox for trunk/src


Ignore:
Timestamp:
Mar 22, 2010 3:13:55 PM (15 years ago)
Author:
vboxsync
Message:

Change balloon page type back to zero when deflated.

File:
1 edited

Legend:

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

    r27594 r27597  
    844844        /* Flush the PGM pool cache as we might have stale references to pages that we just freed. */
    845845        pgmR3PoolClearAllRendezvous(pVM, pVCpu, NULL);
     846    }
     847    else
     848    {
     849        /* Iterate the pages. */
     850        for (unsigned i = 0; i < cPages; i++)
     851        {
     852            PPGMPAGE pPage = pgmPhysGetPage(&pVM->pgm.s, paPhysPage[i]);
     853            AssertBreak(pPage && pPage->uTypeY == PGMPAGETYPE_RAM);
     854
     855            LogFlow(("Free ballooned page: %RGp\n", paPhysPage[i]));
     856
     857            Assert(PGM_PAGE_IS_BALLOONED(pPage));
     858
     859            /* Change back to zero page. */
     860            PGM_PAGE_SET_STATE(pPage, PGM_PAGE_STATE_ZERO);
     861        }
    846862    }
    847863
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