]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Collect information for setting TSC scaling ratio
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 20 Oct 2015 07:39:01 +0000 (15:39 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Nov 2015 11:06:14 +0000 (12:06 +0100)
commit1257f726f534bcf27ecb302daf7a990e27f8ab05
tree48a66aa2209463b4c59bb47510400780ca83902c
parent56e95976988b2eb8fc3e90330302c482fe91aa97
KVM: x86: Collect information for setting TSC scaling ratio

The number of bits of the fractional part of the 64-bit TSC scaling
ratio in VMX and SVM is different. This patch makes the architecture
code to collect the number of fractional bits and other related
information into variables that can be accessed in the common code.

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