- Timestamp:
- Aug 23, 2012 8:45:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp
r42894 r42931 2666 2666 break; 2667 2667 2668 /* 2669 * Ballooned pages must be unmarked (live snapshot and teleportation scenarios) 2670 */ 2668 /* Ballooned pages must be unmarked (live snapshot and 2669 teleportation scenarios). */ 2671 2670 if (PGM_PAGE_IS_BALLOONED(pPage)) 2672 2671 { … … 2680 2679 AssertLogRelMsgReturn(PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_ALLOCATED, ("GCPhys=%RGp %R[pgmpage]\n", GCPhys, pPage), VERR_PGM_UNEXPECTED_PAGE_STATE); 2681 2680 2682 /* 2683 * If this is a ROM page, we must clear it and not try to free it. 2684 * If the VM is using RamPreAlloc, don't free the page either (see @bugref{6318}). 2685 */ 2681 /* If this is a ROM page, we must clear it and not try to 2682 * free it. Ditto if the VM is using RamPreAlloc (see 2683 * @bugref{6318}). */ 2686 2684 if ( PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM 2687 2685 || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM_SHADOW … … 2696 2694 pgmPhysReleaseInternalPageMappingLock(pVM, &PgMpLck); 2697 2695 } 2698 /* 2699 * Free it only if it's not part of a previously allocated large page 2700 * (no need to clear the page). 2701 */ 2696 /* Free it only if it's not part of a previously 2697 allocated large page (no need to clear the page). */ 2702 2698 else if ( PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE 2703 2699 && PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE_DISABLED) … … 2716 2712 break; 2717 2713 2718 /* 2719 * We don't map ballooned pages in our shadow page tables, let's just free 2720 * it if allocated and mark as ballooned. See @bugref{5515}. 2721 */ 2714 /* We don't map ballooned pages in our shadow page tables, let's 2715 just free it if allocated and mark as ballooned. See @bugref{5515}. */ 2722 2716 if (PGM_PAGE_IS_ALLOCATED(pPage)) 2723 2717 {
Note:
See TracChangeset
for help on using the changeset viewer.