VirtualBox

Changeset 86683 in vbox for trunk


Ignore:
Timestamp:
Oct 23, 2020 9:06:16 AM (4 years ago)
Author:
vboxsync
Message:

VMM/DBGF: Missing tracer destruction in R0 when the VM terminates, bugref:9210

Location:
trunk
Files:
1 added
5 edited

Legend:

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

    r86666 r86683  
    5959 * @{
    6060 */
     61VMMR0_INT_DECL(void) DBGFR0InitPerVMData(PGVM pGVM);
     62VMMR0_INT_DECL(void) DBGFR0CleanupVM(PGVM pGVM);
     63
    6164/**
    6265 * Request buffer for DBGFR0TracerCreateReqHandler / VMMR0_DO_DBGF_TRACER_CREATE.
  • trunk/src/VBox/VMM/Makefile.kmk

    r86666 r86683  
    478478        VMMR0/CPUMR0.cpp \
    479479        VMMR0/CPUMR0A.asm \
     480        VMMR0/DBGFR0.cpp \
    480481        $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMR0/DBGFR0Tracer.cpp,) \
    481482        VMMR0/GIMR0.cpp \
  • trunk/src/VBox/VMM/VMMR0/DBGFR0Tracer.cpp

    r84823 r86683  
    5454 * @param   pTracer     The device instance.
    5555 */
    56 DECLHIDDEN(int) dbgfR0TracerDestroy(PGVM pGVM, PDBGFTRACERINSR0 pTracer)
     56DECLHIDDEN(void) dbgfR0TracerDestroy(PGVM pGVM, PDBGFTRACERINSR0 pTracer)
    5757{
    5858    RT_NOREF(pGVM);
     
    6868    pTracer->hMemObj = NIL_RTR0MEMOBJ;
    6969    RTR0MemObjFree(hMemObj, true);
    70 
    71     return VINF_SUCCESS;
    7270}
    7371
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r82989 r86683  
    5454#include <VBox/vmm/gmm.h>
    5555#include "GVMMR0Internal.h"
     56#include <VBox/vmm/dbgf.h>
    5657#include <VBox/vmm/iom.h>
    5758#include <VBox/vmm/pdm.h>
     
    906907                        rc = GMMR0InitPerVMData(pGVM);
    907908                        int rc2 = PGMR0InitPerVMData(pGVM);
     909                        DBGFR0InitPerVMData(pGVM);
    908910                        PDMR0InitPerVMData(pGVM);
    909911                        IOMR0InitPerVMData(pGVM);
     
    13021304    PDMR0CleanupVM(pGVM);
    13031305    IOMR0CleanupVM(pGVM);
     1306    DBGFR0CleanupVM(pGVM);
    13041307    PGMR0CleanupVM(pGVM);
    13051308
  • trunk/src/VBox/VMM/include/DBGFInternal.h

    r86666 r86683  
    11861186#endif /* IN_RING3 */
    11871187
     1188#ifdef IN_RING0
     1189DECLHIDDEN(void) dbgfR0TracerDestroy(PGVM pGVM, PDBGFTRACERINSR0 pTracer);
     1190#endif /* !IN_RING0 */
     1191
    11881192/** @} */
    11891193
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