KVM: VMX: Setup TSC scaling ratio when a vcpu is loaded
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 20 Oct 2015 07:39:10 +0000 (15:39 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Nov 2015 11:06:20 +0000 (12:06 +0100)
commitff2c3a1803775cc72dc6f624b59554956396b0ee
tree9c7590b93dc726a8bce9ea87dff3726320c98061
parent64903d6195cbfb051ce339d30848cc64babdba12
KVM: VMX: Setup TSC scaling ratio when a vcpu is loaded

This patch makes kvm-intel module to load TSC scaling ratio into TSC
multiplier field of VMCS when a vcpu is loaded, so that TSC scaling
ratio can take effect if VMX TSC scaling is enabled.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c