VirtualBox

Changeset 67988 in vbox


Ignore:
Timestamp:
Jul 17, 2017 11:30:28 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116997
Message:

GVMMR0: Moved the VMMR0ThreadCtxHookDestroyForEmt calls to the right place so we don't leak this on abends.

File:
1 edited

Legend:

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

    r67987 r67988  
    12261226            gvmmR0CreateDestroyUnlock(pGVMM);
    12271227
    1228             /** @todo this _must_ be the wrong place.   */
    1229             for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
    1230             {
    1231                 /** @todo Can we busy wait here for all thread-context hooks to be
    1232                  *        deregistered before releasing (destroying) it? Only until we find a
    1233                  *        solution for not deregistering hooks everytime we're leaving HMR0
    1234                  *        context. */
    1235                 VMMR0ThreadCtxHookDestroyForEmt(&pVM->aCpus[idCpu]);
    1236             }
    1237 
    12381228            SUPR0ObjRelease(pvObj, pHandle->pSession);
    12391229        }
     
    12771267
    12781268    GMMR0CleanupVM(pGVM);
     1269
     1270    AssertCompile((uintptr_t)NIL_RTTHREADCTXHOOK == 0); /* Depends on zero initialized memory working for NIL at the moment. */
     1271    for (VMCPUID idCpu = 0; idCpu < pGVM->cCpus; idCpu++)
     1272    {
     1273        /** @todo Can we busy wait here for all thread-context hooks to be
     1274         *        deregistered before releasing (destroying) it? Only until we find a
     1275         *        solution for not deregistering hooks everytime we're leaving HMR0
     1276         *        context. */
     1277        VMMR0ThreadCtxHookDestroyForEmt(&pGVM->pVM->aCpus[idCpu]);
     1278    }
    12791279}
    12801280
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