VirtualBox

Changeset 87792 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Feb 18, 2021 6:38:24 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142852
Message:

VMM/TM: Moved the timers off the hyper heap. Replaced the relative offset addressing with queue array indexing. bugref:9943

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r86683 r87792  
    910910                        PDMR0InitPerVMData(pGVM);
    911911                        IOMR0InitPerVMData(pGVM);
     912                        TMR0InitPerVMData(pGVM);
    912913                        if (RT_SUCCESS(rc) && RT_SUCCESS(rc2))
    913914                        {
     
    13061307    DBGFR0CleanupVM(pGVM);
    13071308    PGMR0CleanupVM(pGVM);
     1309    TMR0CleanupVM(pGVM);
    13081310
    13091311    AssertCompile(NIL_RTTHREADCTXHOOK == (RTTHREADCTXHOOK)0); /* Depends on zero initialized memory working for NIL at the moment. */
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r87666 r87792  
    23102310
    23112311        /*
     2312         * TM requests.
     2313         */
     2314        case VMMR0_DO_TM_GROW_TIMER_QUEUE:
     2315        {
     2316            if (pReqHdr || idCpu == NIL_VMCPUID)
     2317                return VERR_INVALID_PARAMETER;
     2318            rc = TMR0TimerQueueGrow(pGVM, RT_HI_U32(u64Arg), RT_LO_U32(u64Arg));
     2319            VMM_CHECK_SMAP_CHECK2(pGVM, RT_NOTHING);
     2320            break;
     2321        }
     2322
     2323        /*
    23122324         * For profiling.
    23132325         */
     
    23902402    if (   pVM  != NULL
    23912403        && pGVM != NULL
    2392         && pVM  == pGVM /** @todo drop pGVM */
     2404        && pVM  == pGVM /** @todo drop pVM or pGVM */
    23932405        && idCpu < pGVM->cCpus
    23942406        && pGVM->pSession == pSession
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