summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorPaolo Bonzini2016-02-08 14:51:40 +0100
committerPaolo Bonzini2016-02-16 18:48:34 +0100
commit78db6a5037965429c04d708281f35a6e5562d31b (patch)
tree69df8a7348f8d7c2377a5b8acd3c9a46c156a14f /block
parentKVM: x86: rename argument to kvm_set_tsc_khz (diff)
downloadkernel-qcow2-linux-78db6a5037965429c04d708281f35a6e5562d31b.tar.gz
kernel-qcow2-linux-78db6a5037965429c04d708281f35a6e5562d31b.tar.xz
kernel-qcow2-linux-78db6a5037965429c04d708281f35a6e5562d31b.zip
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 'block')
0 files changed, 0 insertions, 0 deletions