VirtualBox

Changeset 36911 in vbox


Ignore:
Timestamp:
May 2, 2011 2:21:18 PM (14 years ago)
Author:
vboxsync
Message:

pgmR3PhysChangeMemBalloonRendezvous: Use the PGM_PAGE_GET_TYPE macro, never access PGMPAGE members directly.

File:
1 edited

Legend:

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

    r36902 r36911  
    966966            PPGMPAGE pPage = pgmPhysGetPage(pVM, paPhysPage[i]);
    967967            if (    pPage == NULL
    968                 ||  pPage->uTypeY != PGMPAGETYPE_RAM)
     968                ||  PGM_PAGE_GET_TYPE(pPage) != PGMPAGETYPE_RAM)
    969969            {
    970                 Log(("pgmR3PhysChangeMemBalloonRendezvous: invalid physical page %RGp pPage->u3Type=%d\n", paPhysPage[i], (pPage) ? pPage->uTypeY : 0));
     970                Log(("pgmR3PhysChangeMemBalloonRendezvous: invalid physical page %RGp pPage->u3Type=%d\n", paPhysPage[i], pPage ? PGM_PAGE_GET_TYPE(pPage) : 0));
    971971                break;
    972972            }
     
    10061006        {
    10071007            PPGMPAGE pPage = pgmPhysGetPage(pVM, paPhysPage[i]);
    1008             AssertBreak(pPage && pPage->uTypeY == PGMPAGETYPE_RAM);
     1008            AssertBreak(pPage && PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_RAM);
    10091009
    10101010            LogFlow(("Free ballooned page: %RGp\n", paPhysPage[i]));
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