VirtualBox

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


Ignore:
Timestamp:
Aug 14, 2009 12:45:12 PM (15 years ago)
Author:
vboxsync
Message:

Guestimate too high; was still seeing decreasing rdtsc values

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

Legend:

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

    r22244 r22257  
    12641264    /* Possibly the last TSC value seen by the guest (too high) (only when we're in tsc offset mode). */
    12651265    if (!(pVMCB->ctrl.u32InterceptCtrl1 & SVM_CTRL1_INTERCEPT_RDTSC))
    1266         TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVMCB->ctrl.u64TSCOffset - 0x1000 /* guestimate of world switch overhead in clock ticks */);
     1266        TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVMCB->ctrl.u64TSCOffset - 0x400 /* guestimate of world switch overhead in clock ticks */);
    12671267    TMNotifyEndOfExecution(pVCpu);
    12681268    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r22243 r22257  
    25922592    /* Possibly the last TSC value seen by the guest (too high) (only when we're in tsc offset mode). */
    25932593    if (!(pVCpu->hwaccm.s.vmx.proc_ctls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_RDTSC_EXIT))
    2594         TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVCpu->hwaccm.s.vmx.u64TSCOffset - 0x1000 /* guestimate of world switch overhead in clock ticks */);
     2594        TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVCpu->hwaccm.s.vmx.u64TSCOffset - 0x400 /* guestimate of world switch overhead in clock ticks */);
    25952595
    25962596    TMNotifyEndOfExecution(pVCpu);
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