summaryrefslogtreecommitdiffstats
path: root/virt/kvm/assigned-dev.c
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/kvm/assigned-dev.c
parentb74f05d61b73af584d0c39121980171389ecfaaa (diff)
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/kvm/assigned-dev.c')
0 files changed, 0 insertions, 0 deletions