diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-16 18:31:30 +0100 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2016-11-19 18:03:03 +0100 |
commit | 8b9534406456313beb7bf9051150b50c63049ab7 (patch) | |
tree | 029c08e8e130130e8e59331f8b15560a7e119c66 /scripts/Kbuild.include | |
parent | Merge tag 'kvm-arm-for-4.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
download | linux-8b9534406456313beb7bf9051150b50c63049ab7.tar.xz linux-8b9534406456313beb7bf9051150b50c63049ab7.zip |
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>
Diffstat (limited to 'scripts/Kbuild.include')
0 files changed, 0 insertions, 0 deletions