VirtualBox

Changeset 18213 in vbox for trunk/src


Ignore:
Timestamp:
Mar 24, 2009 6:15:41 PM (16 years ago)
Author:
vboxsync
Message:

GVMMR0: Don't forget to call GMM for init and cleanup on VM object destruction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r16575 r18213  
    4040#define LOG_GROUP LOG_GROUP_GVMM
    4141#include <VBox/gvmm.h>
     42#include <VBox/gmm.h>
    4243#include "GVMMR0Internal.h"
    4344#include <VBox/gvm.h>
     
    579580
    580581                        gvmmR0InitPerVMData(pGVM);
    581                         /* GMMR0InitPerVMData(pGVM); - later */
     582                        GMMR0InitPerVMData(pGVM);
    582583
    583584                        /*
     
    868869 * @param   pGVM        The GVM pointer.
    869870 */
    870 static void gmmR0CleanupVM(PGVM pGVM)
     871static void gvmmR0CleanupVM(PGVM pGVM)
    871872{
    872873    if (    pGVM->gvmm.s.fDoneVMMR0Init
     
    876877            &&  RTR0MemObjAddress(pGVM->gvmm.s.VMMemObj) == pGVM->pVM)
    877878        {
    878             LogFlow(("gmmR0CleanupVM: Calling VMMR0TermVM\n"));
     879            LogFlow(("gvmmR0CleanupVM: Calling VMMR0TermVM\n"));
    879880            VMMR0TermVM(pGVM->pVM, pGVM);
    880881        }
    881882        else
    882             AssertMsgFailed(("gmmR0CleanupVM: VMMemObj=%p pVM=%p\n", pGVM->gvmm.s.VMMemObj, pGVM->pVM));
    883     }
     883            AssertMsgFailed(("gvmmR0CleanupVM: VMMemObj=%p pVM=%p\n", pGVM->gvmm.s.VMMemObj, pGVM->pVM));
     884    }
     885
     886    GMMR0CleanupVM(pGVM);
    884887}
    885888
     
    975978        &&  pGVM->u32Magic == GVM_MAGIC)
    976979    {
    977         gmmR0CleanupVM(pGVM);
     980        gvmmR0CleanupVM(pGVM);
    978981
    979982        /*
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