VirtualBox

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


Ignore:
Timestamp:
Aug 16, 2012 7:11:15 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80093
Message:

VMM: Respect RamPreAlloc while restoring saved state.

File:
1 edited

Legend:

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

    r41965 r42836  
    26792679                        AssertLogRelMsgReturn(PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_ALLOCATED, ("GCPhys=%RGp %R[pgmpage]\n", GCPhys, pPage), VERR_PGM_UNEXPECTED_PAGE_STATE);
    26802680
    2681                         /* If this is a ROM page, we must clear it and not try
    2682                            free it... */
     2681                        /*
     2682                         * If this is a ROM page, we must clear it and not try to free it.
     2683                         * If the VM is using RamPreAlloc, don't free the page either (see @bugref{6318}).
     2684                         */
    26832685                        if (   PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM
    2684                             || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM_SHADOW)
     2686                            || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM_SHADOW
     2687                            || pVM->pgm.s.fRamPreAlloc)
    26852688                        {
    26862689                            PGMPAGEMAPLOCK PgMpLck;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette