]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Replace call-back compute_tsc_offset() with a common function
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 20 Oct 2015 07:39:05 +0000 (15:39 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Nov 2015 11:06:16 +0000 (12:06 +0100)
commit23550eb0b01ca4d04b13b6155992ed698ec538aa
treeaf346dcf95cb8a00fc2090f095a9b43c4d71ead4
parent52a5944380daff036708104442ead4d665ad5ef2
KVM: x86: Replace call-back compute_tsc_offset() with a common function

Both VMX and SVM calculate the tsc-offset in the same way, so this
patch removes the call-back compute_tsc_offset() and replaces it with a
common function kvm_compute_tsc_offset().

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