VirtualBox

Changeset 28974 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 3, 2010 1:09:44 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60991
Message:

Dump GMM stats on PGMR3PhysAllocateHandyPages failure.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/gmm.h

    r28809 r28974  
    399399
    400400/**
    401  * Request buffer for GMMR0QueryVMMMemoryStatsReq / VMMR0_DO_GMM_QUERY_VMM_MEM_STATS.
    402  * @see GMMR0QueryVMMMemoryStatsReq.
     401 * Request buffer for GMMR0QueryHypervisorMemoryStatsReq / VMMR0_DO_GMM_QUERY_VMM_MEM_STATS.
     402 * @see GMMR0QueryHypervisorMemoryStatsReq.
    403403 */
    404404typedef struct GMMMEMSTATSREQ
     
    412412    /** The number of ballooned pages (out). */
    413413    uint64_t            cBalloonedPages;
     414    /** Maximum nr of pages (out). */
     415    uint64_t            cMaxPages;
    414416} GMMMEMSTATSREQ;
    415 /** Pointer to a GMMR0QueryVMMMemoryStatsReq / VMMR0_DO_GMM_QUERY_VMM_MEM_STATS request buffer. */
     417/** Pointer to a GMMR0QueryHypervisorMemoryStatsReq / VMMR0_DO_GMM_QUERY_HYPERVISOR_MEM_STATS request buffer. */
    416418typedef GMMMEMSTATSREQ *PGMMMEMSTATSREQ;
    417419
    418 GMMR0DECL(int)  GMMR0QueryVMMMemoryStatsReq(PVM pVM, PGMMMEMSTATSREQ pReq);
     420GMMR0DECL(int)  GMMR0QueryHypervisorMemoryStatsReq(PVM pVM, PGMMMEMSTATSREQ pReq);
     421GMMR0DECL(int)  GMMR0QueryMemoryStatsReq(PVM pVM, VMCPUID idCpu, PGMMMEMSTATSREQ pReq);
    419422
    420423/**
     
    532535GMMR3DECL(int)  GMMR3MapUnmapChunk(PVM pVM, uint32_t idChunkMap, uint32_t idChunkUnmap, PRTR3PTR ppvR3);
    533536GMMR3DECL(int)  GMMR3SeedChunk(PVM pVM, RTR3PTR pvR3);
     537GMMR3DECL(int)  GMMR3QueryHypervisorMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages);
     538GMMR3DECL(int)  GMMR3QueryMemoryStats(PVM pVM, uint64_t *pcAllocPages, uint64_t *pcMaxPages, uint64_t *pcBalloonPages);
    534539GMMR3DECL(int)  GMMR3BalloonedPages(PVM pVM, GMMBALLOONACTION enmAction, uint32_t cBalloonedPages);
    535 GMMR3DECL(int)  GMMR3QueryVMMMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages);
    536540GMMR3DECL(int)  GMMR3RegisterSharedModule(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,
    537541                                          unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions);
  • trunk/include/VBox/vmm.h

    r28800 r28974  
    296296    /** Call GMMR0FreeLargePage(). */
    297297    VMMR0_DO_GMM_FREE_LARGE_PAGE,
    298     /** Call GMMR0QueryVMMMemoryStatsReq(). */
    299     VMMR0_DO_GMM_QUERY_VMM_MEM_STATS,
     298    /** Call GMMR0QueryHypervisorMemoryStatsReq(). */
     299    VMMR0_DO_GMM_QUERY_HYPERVISOR_MEM_STATS,
     300    /** Call GMMR0QueryMemoryStatsReq(). */
     301    VMMR0_DO_GMM_QUERY_MEM_STATS,
    300302    /** Call GMMR0BalloonedPages(). */
    301303    VMMR0_DO_GMM_BALLOONED_PAGES,
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