Changeset 91245 in vbox
- Timestamp:
- Sep 15, 2021 10:53:06 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pgm.h
r91243 r91245 788 788 VMMR3DECL(int) PGMR3PhysBulkGCPhys2CCPtrReadOnlyExternal(PVM pVM, uint32_t cPages, PCRTGCPHYS paGCPhysPages, 789 789 void const **papvPages, PPGMPAGEMAPLOCK paLocks); 790 VMMR3DECL(int) PGMR3PhysChunkMap(PVM pVM, uint32_t idChunk);791 790 VMMR3DECL(void) PGMR3PhysChunkInvalidateTLB(PVM pVM); 792 791 VMMR3DECL(int) PGMR3PhysAllocateHandyPages(PVM pVM); -
trunk/include/VBox/vmm/vmm.h
r91243 r91245 58 58 VMMCALLRING3_VM_R0_ASSERTION, 59 59 60 /** Maps a chunk into ring-3. */61 VMMCALLRING3_PGM_MAP_CHUNK,62 60 /** Allocates more handy pages. */ 63 61 VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES, -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r91243 r91245 1288 1288 switch (pVCpu->vmm.s.enmCallRing3Operation) 1289 1289 { 1290 case VMMCALLRING3_PGM_MAP_CHUNK:1291 STAM_COUNTER_INC(&pVM->vmm.s.StatRZCallPGMMapChunk);1292 break;1293 1290 case VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES: 1294 1291 STAM_COUNTER_INC(&pVM->vmm.s.StatRZCallPGMAllocHandy); -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r91017 r91245 4901 4901 4902 4902 /** 4903 * For VMMCALLRING3_PGM_MAP_CHUNK, considered internal.4904 *4905 * @returns see pgmR3PhysChunkMap.4906 * @param pVM The cross context VM structure.4907 * @param idChunk The chunk to map.4908 */4909 VMMR3DECL(int) PGMR3PhysChunkMap(PVM pVM, uint32_t idChunk)4910 {4911 PPGMCHUNKR3MAP pChunk;4912 int rc;4913 4914 PGM_LOCK_VOID(pVM);4915 rc = pgmR3PhysChunkMap(pVM, idChunk, &pChunk);4916 PGM_UNLOCK(pVM);4917 return rc;4918 }4919 4920 4921 /**4922 4903 * Invalidates the TLB for the ring-3 mapping cache. 4923 4904 * -
trunk/src/VBox/VMM/VMMR3/VMM.cpp
r91243 r91245 430 430 STAM_REG(pVM, &pVM->vmm.s.StatRZRetPatchTPR, STAMTYPE_COUNTER, "/VMM/RZRet/PatchTPR", STAMUNIT_OCCURENCES, "Number of VINF_EM_HM_PATCH_TPR_INSTR returns."); 431 431 STAM_REG(pVM, &pVM->vmm.s.StatRZRetCallRing3, STAMTYPE_COUNTER, "/VMM/RZCallR3/Misc", STAMUNIT_OCCURENCES, "Number of Other ring-3 calls."); 432 STAM_REG(pVM, &pVM->vmm.s.StatRZCallPGMMapChunk, STAMTYPE_COUNTER, "/VMM/RZCallR3/PGMMapChunk", STAMUNIT_OCCURENCES, "Number of VMMCALLRING3_PGM_MAP_CHUNK calls.");433 432 STAM_REG(pVM, &pVM->vmm.s.StatRZCallPGMAllocHandy, STAMTYPE_COUNTER, "/VMM/RZCallR3/PGMAllocHandy", STAMUNIT_OCCURENCES, "Number of VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES calls."); 434 433 … … 2501 2500 { 2502 2501 /* 2503 * Maps an page allocation chunk into ring-3 so ring-0 can use it.2504 */2505 case VMMCALLRING3_PGM_MAP_CHUNK:2506 {2507 pVCpu->vmm.s.rcCallRing3 = PGMR3PhysChunkMap(pVM, pVCpu->vmm.s.u64CallRing3Arg);2508 break;2509 }2510 2511 /*2512 2502 * Allocates more handy pages. 2513 2503 */ -
trunk/src/VBox/VMM/include/VMMInternal.h
r91244 r91245 414 414 STAMCOUNTER StatRZRetPGMFlushPending; 415 415 STAMCOUNTER StatRZRetPatchTPR; 416 STAMCOUNTER StatRZCallPGMMapChunk;417 416 STAMCOUNTER StatRZCallPGMAllocHandy; 418 417 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.