VirtualBox

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


Ignore:
Timestamp:
Apr 13, 2007 12:59:52 PM (18 years ago)
Author:
vboxsync
Message:

TMTimerGet is unsafe as it checks for expired timers each time.

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

Legend:

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

    r2070 r2076  
    485485
    486486    /** TSC offset. */
    487     pVMCB->ctrl.u64TSCOffset = TMCpuTickGet(pVM) - ASMReadTSC();
     487    pVMCB->ctrl.u64TSCOffset = TMCpuTickGetOffset(pVM);
    488488
    489489    /** @todo 64 bits stuff (?):
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r2070 r2076  
    747747
    748748    /** TSC offset. */
    749     uint64_t u64TSCOffset = TMCpuTickGet(pVM) - ASMReadTSC();
     749    uint64_t u64TSCOffset = TMCpuTickGetOffset(pVM);
    750750
    751751#if HC_ARCH_BITS == 64
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