From: Marcelo Tosatti Date: Thu, 8 Mar 2012 21:46:57 +0000 (-0300) Subject: KVM: x86: fix kvm_write_tsc() TSC matching thinko X-Git-Tag: v3.4-rc1~59^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02626b6af5d2bc62db3bb85fc2891b2725535d44;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed