Changeset 28036 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Apr 7, 2010 9:47:43 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59743
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r28012 r28036 2998 2998 * @param pReq The request packet. 2999 2999 */ 3000 GMMR0DECL(int) GMMR0Query TotalFreePagesReq(PVM pVM, PGMMFREEQUERYREQ pReq)3000 GMMR0DECL(int) GMMR0QueryVMMMemoryStatsReq(PVM pVM, PGMMMEMSTATSREQ pReq) 3001 3001 { 3002 3002 /* … … 3005 3005 AssertPtrReturn(pVM, VERR_INVALID_POINTER); 3006 3006 AssertPtrReturn(pReq, VERR_INVALID_POINTER); 3007 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(GMM FREEQUERYREQ),3008 ("%#x < %#x\n", pReq->Hdr.cbReq, sizeof(GMM FREEQUERYREQ)),3007 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(GMMMEMSTATSREQ), 3008 ("%#x < %#x\n", pReq->Hdr.cbReq, sizeof(GMMMEMSTATSREQ)), 3009 3009 VERR_INVALID_PARAMETER); 3010 3010 … … 3014 3014 PGMM pGMM; 3015 3015 GMM_GET_VALID_INSTANCE(pGMM, VERR_INTERNAL_ERROR); 3016 pReq->cFreePages = (pGMM->cChunks << GMM_CHUNK_SHIFT) - pGMM->cAllocatedPages; 3016 pReq->cAllocPages = pGMM->cAllocatedPages; 3017 pReq->cFreePages = (pGMM->cChunks << GMM_CHUNK_SHIFT) - pGMM->cAllocatedPages; 3018 pReq->cBalloonedPages = pGMM->cBalloonedPages; 3017 3019 GMM_CHECK_SANITY_UPON_LEAVING(pGMM); 3018 3020 -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r28012 r28036 910 910 return GMMR0FreeLargePageReq(pVM, idCpu, (PGMMFREELARGEPAGEREQ)pReqHdr); 911 911 912 case VMMR0_DO_GMM_QUERY_ TOTAL_FREE_PAGES:912 case VMMR0_DO_GMM_QUERY_VMM_MEM_STATS: 913 913 if (u64Arg) 914 914 return VERR_INVALID_PARAMETER; 915 return GMMR0Query TotalFreePagesReq(pVM, (PGMMFREEQUERYREQ)pReqHdr);915 return GMMR0QueryVMMMemoryStatsReq(pVM, (PGMMMEMSTATSREQ)pReqHdr); 916 916 917 917 case VMMR0_DO_GMM_BALLOONED_PAGES:
Note:
See TracChangeset
for help on using the changeset viewer.