VirtualBox

Changeset 2070 in vbox for trunk


Ignore:
Timestamp:
Apr 13, 2007 10:12:06 AM (18 years ago)
Author:
vboxsync
Message:

Corrected TSC offset for SVM & VMX.

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

Legend:

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

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

    r2062 r2070  
    747747
    748748    /** TSC offset. */
    749     uint64_t u64TSCOffset = TMCpuTickGetOffset(pVM);
     749    uint64_t u64TSCOffset = TMCpuTickGet(pVM) - ASMReadTSC();
    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