]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move TSC scaling logic out of call-back read_l1_tsc()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 20 Oct 2015 07:39:07 +0000 (15:39 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Nov 2015 11:06:18 +0000 (12:06 +0100)
commit7f6031271f114aea2d5950f1dc822f484db4dee0
tree32037daf9320fabc677697ae2ddaf03bd976b94c
parent7e984b7cb44e3be750fba17be2b744bb39d88b93
KVM: x86: Move TSC scaling logic out of call-back read_l1_tsc()

Both VMX and SVM scales the host TSC in the same way in call-back
read_l1_tsc(), so this patch moves the scaling logic from call-back
read_l1_tsc() to a common function kvm_read_l1_tsc().

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/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/x86.c