VirtualBox

Changeset 91245 in vbox


Ignore:
Timestamp:
Sep 15, 2021 10:53:06 AM (3 years ago)
Author:
vboxsync
Message:

VMM/PGM: Removed VMMCALLRING3_PGM_MAP_CHUNK and PGMR3PhysChunkMap as it's unused now after bugref:9627 became default everywhere. bugref:10093

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pgm.h

    r91243 r91245  
    788788VMMR3DECL(int)      PGMR3PhysBulkGCPhys2CCPtrReadOnlyExternal(PVM pVM, uint32_t cPages, PCRTGCPHYS paGCPhysPages,
    789789                                                              void const **papvPages, PPGMPAGEMAPLOCK paLocks);
    790 VMMR3DECL(int)      PGMR3PhysChunkMap(PVM pVM, uint32_t idChunk);
    791790VMMR3DECL(void)     PGMR3PhysChunkInvalidateTLB(PVM pVM);
    792791VMMR3DECL(int)      PGMR3PhysAllocateHandyPages(PVM pVM);
  • trunk/include/VBox/vmm/vmm.h

    r91243 r91245  
    5858    VMMCALLRING3_VM_R0_ASSERTION,
    5959
    60     /** Maps a chunk into ring-3. */
    61     VMMCALLRING3_PGM_MAP_CHUNK,
    6260    /** Allocates more handy pages. */
    6361    VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES,
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r91243 r91245  
    12881288            switch (pVCpu->vmm.s.enmCallRing3Operation)
    12891289            {
    1290                 case VMMCALLRING3_PGM_MAP_CHUNK:
    1291                     STAM_COUNTER_INC(&pVM->vmm.s.StatRZCallPGMMapChunk);
    1292                     break;
    12931290                case VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES:
    12941291                    STAM_COUNTER_INC(&pVM->vmm.s.StatRZCallPGMAllocHandy);
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r91017 r91245  
    49014901
    49024902/**
    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 /**
    49224903 * Invalidates the TLB for the ring-3 mapping cache.
    49234904 *
  • trunk/src/VBox/VMM/VMMR3/VMM.cpp

    r91243 r91245  
    430430    STAM_REG(pVM, &pVM->vmm.s.StatRZRetPatchTPR,            STAMTYPE_COUNTER, "/VMM/RZRet/PatchTPR",            STAMUNIT_OCCURENCES, "Number of VINF_EM_HM_PATCH_TPR_INSTR returns.");
    431431    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.");
    433432    STAM_REG(pVM, &pVM->vmm.s.StatRZCallPGMAllocHandy,      STAMTYPE_COUNTER, "/VMM/RZCallR3/PGMAllocHandy",    STAMUNIT_OCCURENCES, "Number of VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES calls.");
    434433
     
    25012500    {
    25022501        /*
    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         /*
    25122502         * Allocates more handy pages.
    25132503         */
  • trunk/src/VBox/VMM/include/VMMInternal.h

    r91244 r91245  
    414414    STAMCOUNTER                 StatRZRetPGMFlushPending;
    415415    STAMCOUNTER                 StatRZRetPatchTPR;
    416     STAMCOUNTER                 StatRZCallPGMMapChunk;
    417416    STAMCOUNTER                 StatRZCallPGMAllocHandy;
    418417    /** @} */
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