summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-02-08 14:51:40 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-02-16 18:48:34 +0100
commit78db6a5037965429c04d708281f35a6e5562d31b (patch)
tree69df8a7348f8d7c2377a5b8acd3c9a46c156a14f /arch/x86/kvm/lapic.c
parent4941b8cb3746f09bb102f7a5d64d878e96a0c6cd (diff)
downloadlinux-78db6a5037965429c04d708281f35a6e5562d31b.tar.gz
linux-78db6a5037965429c04d708281f35a6e5562d31b.tar.xz
KVM: x86: rewrite handling of scaled TSC for kvmclock
This is the same as before: kvm_scale_tsc(tgt_tsc_khz) = tgt_tsc_khz * ratio = tgt_tsc_khz * user_tsc_khz / tsc_khz (see set_tsc_khz) = user_tsc_khz (see kvm_guest_time_update) = vcpu->arch.virtual_tsc_khz (see kvm_set_tsc_khz) However, computing it through kvm_scale_tsc will make it possible to include the NTP correction in tgt_tsc_khz. Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
0 files changed, 0 insertions, 0 deletions