Paolo Bonzini 8b95344064 KVM: x86: do not go through vcpu in __get_kvmclock_ns
Going through the first VCPU is wrong if you follow a KVM_SET_CLOCK with
a KVM_GET_CLOCK immediately after, without letting the VCPU run and
call kvm_guest_time_update.

To fix this, compute the kvmclock value ourselves, using the master
clock (tsc, nsec) pair as the base and the host CPU frequency as
the scale.

Reported-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
2016-11-19 18:03:03 +01:00
..
2016-07-23 11:04:23 -07:00
2016-09-20 09:26:20 +02:00
2016-09-20 09:26:20 +02:00
2016-10-11 15:06:33 -07:00
2016-10-20 14:54:11 +02:00
2016-07-14 09:03:57 +02:00
2016-06-16 00:05:00 +02:00
2016-01-15 17:56:32 -08:00
2016-07-14 09:02:47 +02:00
2016-06-14 11:16:28 +02:00
2016-09-20 09:26:15 +02:00