diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2012-03-08 18:46:57 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-20 12:40:36 +0200 |
commit | 02626b6af5d2bc62db3bb85fc2891b2725535d44 (patch) | |
tree | 8f309c29c021118b72cd7f1323420120a27a676a /virt | |
parent | b74f05d61b73af584d0c39121980171389ecfaaa (diff) | |
download | op-kernel-dev-02626b6af5d2bc62db3bb85fc2891b2725535d44.zip op-kernel-dev-02626b6af5d2bc62db3bb85fc2891b2725535d44.tar.gz |
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