VirtualBox

Changeset 91018 in vbox


Ignore:
Timestamp:
Aug 31, 2021 1:30:41 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146658
Message:

VMM/MM: Removed the MMR3UkHeap* code as nobody is using it any more. bugref:9627

Location:
trunk
Files:
1 deleted
4 edited

Legend:

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

    r90991 r91018  
    316316/** @} */
    317317
    318 /** @defgroup grp_mm_ukheap   User-kernel Heap Manager.
    319  *
    320  * The memory is safely accessible from kernel context as well as user land.
    321  *
    322  * @{ */
    323 VMMR3DECL(void *)   MMR3UkHeapAlloc(PVM pVM, MMTAG enmTag, size_t cbSize, PRTR0PTR pR0Ptr);
    324 VMMR3DECL(int)      MMR3UkHeapAllocEx(PVM pVM, MMTAG enmTag, size_t cbSize, void **ppv, PRTR0PTR pR0Ptr);
    325 VMMR3DECL(void *)   MMR3UkHeapAllocZ(PVM pVM, MMTAG enmTag, size_t cbSize, PRTR0PTR pR0Ptr);
    326 VMMR3DECL(int)      MMR3UkHeapAllocZEx(PVM pVM, MMTAG enmTag, size_t cbSize, void **ppv, PRTR0PTR pR0Ptr);
    327 VMMR3DECL(void)     MMR3UkHeapFree(PVM pVM, void *pv, MMTAG enmTag);
    328 /** @} */
    329 
    330318/** @} */
    331319#endif /* IN_RING3 || DOXYGEN_RUNNING */
  • trunk/src/VBox/VMM/Makefile.kmk

    r90634 r91018  
    138138        VMMR3/MMHyper.cpp \
    139139        VMMR3/MMPagePool.cpp \
    140         VMMR3/MMUkHeap.cpp \
    141140        VMMR3/NEMR3.cpp \
    142141        VMMR3/PDM.cpp \
  • trunk/src/VBox/VMM/VMMR3/MM.cpp

    r82968 r91018  
    201201    int rc = mmR3HeapCreateU(pUVM, &pUVM->mm.s.pHeap);
    202202    if (RT_SUCCESS(rc))
    203     {
    204         rc = mmR3UkHeapCreateU(pUVM, &pUVM->mm.s.pUkHeap);
    205         if (RT_SUCCESS(rc))
    206             return VINF_SUCCESS;
    207         mmR3HeapDestroy(pUVM->mm.s.pHeap);
    208         pUVM->mm.s.pHeap = NULL;
    209     }
     203        return VINF_SUCCESS;
    210204    return rc;
    211205}
     
    467461    pVM->mm.s.offVM          = 0;           /* init assertion on this */
    468462
    469     /*
    470      * Destroy the User-kernel heap here since the support driver session
    471      * may have been terminated by the time we get to MMR3TermUVM.
    472      */
    473     mmR3UkHeapDestroy(pVM->pUVM->mm.s.pUkHeap);
    474     pVM->pUVM->mm.s.pUkHeap = NULL;
    475 
    476463    return VINF_SUCCESS;
    477464}
     
    490477{
    491478    /*
    492      * Destroy the heaps.
    493      */
    494     if (pUVM->mm.s.pUkHeap)
    495     {
    496         mmR3UkHeapDestroy(pUVM->mm.s.pUkHeap);
    497         pUVM->mm.s.pUkHeap = NULL;
    498     }
     479     * Destroy the heap.
     480     */
    499481    mmR3HeapDestroy(pUVM->mm.s.pHeap);
    500482    pUVM->mm.s.pHeap = NULL;
  • trunk/src/VBox/VMM/include/MMInternal.h

    r82968 r91018  
    629629    /** Pointer to the MM R3 Heap. */
    630630    R3PTRTYPE(PMMHEAP)          pHeap;
    631     /** Pointer to the MM Uk Heap. */
    632     R3PTRTYPE(PMMUKHEAP)        pUkHeap;
    633631} MMUSERPERVM;
    634632/** Pointer to the MM data kept in the UVM. */
     
    638636RT_C_DECLS_BEGIN
    639637
    640 
    641638int  mmR3UpdateReservation(PVM pVM);
    642639
    643640int  mmR3HeapCreateU(PUVM pUVM, PMMHEAP *ppHeap);
    644641void mmR3HeapDestroy(PMMHEAP pHeap);
    645 
    646 void mmR3UkHeapDestroy(PMMUKHEAP pHeap);
    647 int  mmR3UkHeapCreateU(PUVM pUVM, PMMUKHEAP *ppHeap);
    648 
    649642
    650643int  mmR3HyperInit(PVM pVM);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette