VirtualBox

Changeset 18167 in vbox


Ignore:
Timestamp:
Mar 23, 2009 11:37:36 PM (16 years ago)
Author:
vboxsync
Message:

PGM: More details on allocation failure.

File:
1 edited

Legend:

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

    r18166 r18167  
    30883088#if 1
    30893089        for (uint32_t i = 0; i < RT_ELEMENTS(pVM->pgm.s.aHandyPages); i++)
     3090        {
    30903091            LogRel(("PGM: aHandyPages[#%-2d] = {.HCPhysGCPhys=%RHp, .idPage=%#08x, .idSharedPage=%#08x}\n",
    30913092                    i, pVM->pgm.s.aHandyPages[i].HCPhysGCPhys, pVM->pgm.s.aHandyPages[i].idPage,
    30923093                    pVM->pgm.s.aHandyPages[i].idSharedPage));
     3094            uint32_t const idPage = pVM->pgm.s.aHandyPages[i].idPage;
     3095            if (idPage != NIL_GMM_PAGEID)
     3096            {
     3097                for (PPGMRAMRANGE pRam = pVM->pgm.s.pRamRangesR3;
     3098                     pRam;
     3099                     pRam = pRam->pNextR3)
     3100                {
     3101                    uint32_t const cPages = pRam->cb >> PAGE_SHIFT;
     3102                    for (uint32_t iPage = 0; iPage < cPages; iPage++)
     3103                        if (PGM_PAGE_GET_PAGEID(&pRam->aPages[iPage]) == idPage)
     3104                            LogRel(("PGM: Used by %RGp %R{pgmpage} (%s)\n",
     3105                                    pRam->GCPhys + ((RTGCPHYS)iPage << PAGE_SHIFT), &pRam->aPages[iPage], pRam->pszDesc));
     3106                }
     3107            }
     3108        }
    30933109#endif
    30943110        rc = VERR_EM_NO_MEMORY;
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