VirtualBox

Changeset 2081 in vbox for trunk/src


Ignore:
Timestamp:
Apr 13, 2007 4:14:48 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20390
Message:

don't check for pending timers on resume either.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp

    r2075 r2081  
    4040 * Gets the raw cpu tick from current virtual time.
    4141 */
    42 DECLINLINE(uint64_t) tmCpuTickGetRawVirtual(PVM pVM, bool fCheckTimers = true)
     42DECLINLINE(uint64_t) tmCpuTickGetRawVirtual(PVM pVM, bool fCheckTimers)
    4343{
    4444    uint64_t u64 = TMVirtualGetEx(pVM, fCheckTimers);
     
    6565                pVM->tm.s.u64TSCOffset = ASMReadTSC() - pVM->tm.s.u64TSC;
    6666            else
    67                 pVM->tm.s.u64TSCOffset = tmCpuTickGetRawVirtual(pVM) - pVM->tm.s.u64TSC;
     67                pVM->tm.s.u64TSCOffset = tmCpuTickGetRawVirtual(pVM, false /* don't check for pending timers */)
     68                                       - pVM->tm.s.u64TSC;
    6869        }
    6970        return VINF_SUCCESS;
     
    109110                u64 = ASMReadTSC();
    110111            else
    111                 u64 = tmCpuTickGetRawVirtual(pVM, false /* don't check pending timers */);
     112                u64 = tmCpuTickGetRawVirtual(pVM, false /* don't check for pending timers */);
    112113            u64 -= pVM->tm.s.u64TSCOffset;
    113114        }
     
    138139                u64 = ASMReadTSC();
    139140            else
    140                 u64 = tmCpuTickGetRawVirtual(pVM);
     141                u64 = tmCpuTickGetRawVirtual(pVM, true /* check for pending timers */);
    141142            u64 -= pVM->tm.s.u64TSCOffset;
    142143        }
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