summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-03-08 22:46:57 +0100
committerAvi Kivity <avi@redhat.com>2012-03-20 11:40:36 +0100
commit02626b6af5d2bc62db3bb85fc2891b2725535d44 (patch)
tree8f309c29c021118b72cd7f1323420120a27a676a /virt
parentx86: kvmclock: abstract save/restore sched_clock_state (diff)
downloadlinux-02626b6af5d2bc62db3bb85fc2891b2725535d44.tar.xz
linux-02626b6af5d2bc62db3bb85fc2891b2725535d44.zip
KVM: x86: fix kvm_write_tsc() TSC matching thinko
kvm_write_tsc() converts from guest TSC to microseconds, not nanoseconds as intended. The result is that the window for matching is 1000 seconds, not 1 second. Microsecond precision is enough for checking whether the TSC write delta is within the heuristic values, so use it instead of nanoseconds. Noted by Avi Kivity. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions