VirtualBox

Changeset 42931 in vbox for trunk/src


Ignore:
Timestamp:
Aug 23, 2012 8:45:35 AM (12 years ago)
Author:
vboxsync
Message:

Please, leave my comment style alone.

File:
1 edited

Legend:

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

    r42894 r42931  
    26662666                            break;
    26672667
    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). */
    26712670                        if (PGM_PAGE_IS_BALLOONED(pPage))
    26722671                        {
     
    26802679                        AssertLogRelMsgReturn(PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_ALLOCATED, ("GCPhys=%RGp %R[pgmpage]\n", GCPhys, pPage), VERR_PGM_UNEXPECTED_PAGE_STATE);
    26812680
    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}). */
    26862684                        if (   PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM
    26872685                            || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_ROM_SHADOW
     
    26962694                            pgmPhysReleaseInternalPageMappingLock(pVM, &PgMpLck);
    26972695                        }
    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). */
    27022698                        else if (   PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE
    27032699                                 && PGM_PAGE_GET_PDE_TYPE(pPage) != PGM_PAGE_PDE_TYPE_PDE_DISABLED)
     
    27162712                            break;
    27172713
    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}. */
    27222716                        if (PGM_PAGE_IS_ALLOCATED(pPage))
    27232717                        {
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