Changeset 22257 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 14, 2009 12:45:12 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r22244 r22257 1264 1264 /* Possibly the last TSC value seen by the guest (too high) (only when we're in tsc offset mode). */ 1265 1265 if (!(pVMCB->ctrl.u32InterceptCtrl1 & SVM_CTRL1_INTERCEPT_RDTSC)) 1266 TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVMCB->ctrl.u64TSCOffset - 0x 1000 /* guestimate of world switch overhead in clock ticks */);1266 TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVMCB->ctrl.u64TSCOffset - 0x400 /* guestimate of world switch overhead in clock ticks */); 1267 1267 TMNotifyEndOfExecution(pVCpu); 1268 1268 VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED); -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r22243 r22257 2592 2592 /* Possibly the last TSC value seen by the guest (too high) (only when we're in tsc offset mode). */ 2593 2593 if (!(pVCpu->hwaccm.s.vmx.proc_ctls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_RDTSC_EXIT)) 2594 TMCpuTickSetLastSeen(pVCpu, ASMReadTSC() + pVCpu->hwaccm.s.vmx.u64TSCOffset - 0x 1000 /* 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 */); 2595 2595 2596 2596 TMNotifyEndOfExecution(pVCpu);
Note:
See TracChangeset
for help on using the changeset viewer.