- Timestamp:
- Mar 5, 2009 12:58:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/GMM.cpp
r13816 r17368 51 51 Req.enmPolicy = enmPolicy; 52 52 Req.enmPriority = enmPriority; 53 return SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_INITIAL_RESERVATION, 0, &Req.Hdr);53 return VMMR3CallR0(pVM, VMMR0_DO_GMM_INITIAL_RESERVATION, 0, &Req.Hdr); 54 54 } 55 55 … … 66 66 Req.cShadowPages = cShadowPages; 67 67 Req.cFixedPages = cFixedPages; 68 return SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_UPDATE_RESERVATION, 0, &Req.Hdr);68 return VMMR3CallR0(pVM, VMMR0_DO_GMM_UPDATE_RESERVATION, 0, &Req.Hdr); 69 69 } 70 70 … … 91 91 pReq->cPages = cPages; 92 92 NOREF(pVM); 93 *ppReq = pReq; 93 94 return VINF_SUCCESS; 94 95 } … … 107 108 for (unsigned i = 0; ; i++) 108 109 { 109 int rc = SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_ALLOCATE_PAGES, 0, &pReq->Hdr);110 int rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_ALLOCATE_PAGES, 0, &pReq->Hdr); 110 111 if (RT_SUCCESS(rc)) 111 112 return rc; … … 126 127 pReq->cPages); 127 128 128 rc = SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_SEED_CHUNK, (uintptr_t)pvChunk, NULL);129 rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_SEED_CHUNK, (uintptr_t)pvChunk, NULL); 129 130 if (RT_FAILURE(rc)) 130 131 return VMSetError(pVM, rc, RT_SRC_POS, N_("GMM seeding failed")); … … 178 179 GMMR3DECL(int) GMMR3FreePagesPerform(PVM pVM, PGMMFREEPAGESREQ pReq) 179 180 { 180 int rc = SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_FREE_PAGES, 0, &pReq->Hdr);181 int rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_FREE_PAGES, 0, &pReq->Hdr); 181 182 if (RT_SUCCESS(rc)) 182 183 return rc; … … 223 224 } 224 225 225 int rc = SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_FREE_PAGES, 0, &pReq->Hdr);226 int rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_FREE_PAGES, 0, &pReq->Hdr); 226 227 AssertLogRelRC(rc); 227 228 … … 237 238 Req.Hdr.cbReq = sizeof(Req); 238 239 239 return SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_BALLOONED_PAGES, 0, &Req.Hdr);240 return VMMR3CallR0(pVM, VMMR0_DO_GMM_BALLOONED_PAGES, 0, &Req.Hdr); 240 241 } 241 242 #endif … … 247 248 GMMR3DECL(int) GMMR3DeflatedBalloon(PVM pVM, uint32_t cPages) 248 249 { 249 return SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_DEFLATED_BALLOON, cPages, NULL);250 return VMMR3CallR0(pVM, VMMR0_DO_GMM_DEFLATED_BALLOON, cPages, NULL); 250 251 } 251 252 … … 262 263 Req.idChunkUnmap = idChunkUnmap; 263 264 Req.pvR3 = NULL; 264 int rc = SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_MAP_UNMAP_CHUNK, 0, &Req.Hdr);265 int rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_MAP_UNMAP_CHUNK, 0, &Req.Hdr); 265 266 if (RT_SUCCESS(rc) && ppvR3) 266 267 *ppvR3 = Req.pvR3; … … 274 275 GMMR3DECL(int) GMMR3SeedChunk(PVM pVM, RTR3PTR pvR3) 275 276 { 276 return SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_GMM_SEED_CHUNK, (uintptr_t)pvR3, NULL);277 } 278 277 return VMMR3CallR0(pVM, VMMR0_DO_GMM_SEED_CHUNK, (uintptr_t)pvR3, NULL); 278 } 279
Note:
See TracChangeset
for help on using the changeset viewer.