VirtualBox

Changeset 91017 in vbox


Ignore:
Timestamp:
Aug 31, 2021 1:26:45 AM (3 years ago)
Author:
vboxsync
Message:

VMM/PGMPhys: The PGMCHUNKR3MAP structures can be allocated on the regualar heap instead of in the user/kernel heap now. Ring-0 hasn't used these for guest memory accesses for a long while. bugref:9627

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r91016 r91017  
    47344734                pUnmappedChunk->pv       = NULL;
    47354735                pUnmappedChunk->Core.Key = UINT32_MAX;
    4736 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    47374736                MMR3HeapFree(pUnmappedChunk);
    4738 #else
    4739                 MMR3UkHeapFree(pVM, pUnmappedChunk, MM_TAG_PGM_CHUNK_MAPPING);
    4740 #endif
    47414737                pVM->pgm.s.ChunkR3Map.c--;
    47424738                pVM->pgm.s.cUnmappedChunks++;
     
    48174813     * Allocate a new tracking structure first.
    48184814     */
    4819 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    48204815    PPGMCHUNKR3MAP pChunk = (PPGMCHUNKR3MAP)MMR3HeapAllocZ(pVM, MM_TAG_PGM_CHUNK_MAPPING, sizeof(*pChunk));
    4821 #else
    4822     PPGMCHUNKR3MAP pChunk = (PPGMCHUNKR3MAP)MMR3UkHeapAllocZ(pVM, MM_TAG_PGM_CHUNK_MAPPING, sizeof(*pChunk), NULL);
    4823 #endif
    48244816    AssertReturn(pChunk, VERR_NO_MEMORY);
    48254817    pChunk->Core.Key  = idChunk;
     
    48994891         *        should probably restrict ourselves on linux. */
    49004892        AssertRC(rc);
    4901 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    49024893        MMR3HeapFree(pChunk);
    4903 #else
    4904         MMR3UkHeapFree(pVM, pChunk, MM_TAG_PGM_CHUNK_MAPPING);
    4905 #endif
    49064894        pChunk = NULL;
    49074895    }
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