KVM: x86: fix kvm_write_tsc() TSC matching thinko

2012-03-08 Thread Marcelo Tosatti
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

Re: KVM: x86: fix kvm_write_tsc() TSC matching thinko

2012-03-14 Thread Jan Kiszka
On 2012-03-08 22:46, Marcelo Tosatti wrote: > > 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 wit

Re: KVM: x86: fix kvm_write_tsc() TSC matching thinko

2012-03-14 Thread Marcelo Tosatti
On Wed, Mar 14, 2012 at 12:02:41PM +0100, Jan Kiszka wrote: > On 2012-03-08 22:46, Marcelo Tosatti wrote: > > > > 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. > > > > Microse