summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-03-08 18:46:57 -0300
committerAvi Kivity <avi@redhat.com>2012-03-20 12:40:36 +0200
commit02626b6af5d2bc62db3bb85fc2891b2725535d44 (patch)
tree8f309c29c021118b72cd7f1323420120a27a676a /virt
parentb74f05d61b73af584d0c39121980171389ecfaaa (diff)
downloadlinux-02626b6af5d2bc62db3bb85fc2891b2725535d44.tar.gz
linux-02626b6af5d2bc62db3bb85fc2891b2725535d44.tar.bz2
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