]> 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)
commit95938dd3061d4eba97914fcad75bbe5a5213b837
tree48a66aa2209463b4c59bb47510400780ca83902c
parentdd539586d9b1e6916beab1ce6a895c62d04fa0b7
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