VirtualBox

Changeset 19399 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 5, 2009 9:11:43 PM (16 years ago)
Author:
vboxsync
Message:

TM: Only let EMT0 do TMR3TimerQueuesDo for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/TM.cpp

    r19324 r19399  
    14921492 *
    14931493 * @param   pVM             The VM to run the timers for.
     1494 *
     1495 * @thread  EMT (actually EMT0, but we fend off the others)
    14941496 */
    14951497VMMR3DECL(void) TMR3TimerQueuesDo(PVM pVM)
     
    14971499    STAM_PROFILE_START(&pVM->tm.s.StatDoQueues, a);
    14981500    Log2(("TMR3TimerQueuesDo:\n"));
     1501
     1502    /* SMP: quick hack to fend of the wildlife... */ /** @todo SMP */
     1503    if (    pVM->cCPUs > 1
     1504        &&  VMMGetCpuId(pVM) != 0)
     1505        return;
    14991506
    15001507    /*
     
    21202127    const uint64_t u64Real = TMRealGet(pVM);
    21212128
    2122     for (unsigned i=0;i<pVM->cCPUs;i++)
    2123     {
    2124         PVMCPU pVCpu = &pVM->aCpus[i];
    2125 
     2129    for (unsigned i = 0; i < pVM->cCPUs; i++)
     2130    {
     2131        PVMCPU   pVCpu  = &pVM->aCpus[i];
    21262132        uint64_t u64TSC = TMCpuTickGet(pVCpu);
     2133
    21272134        /*
    21282135         * TSC
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