KVM: x86: introduce kvm_can_use_hv_timer
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 May 2020 10:45:35 +0000 (06:45 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:21 +0000 (12:26 -0400)
commit199a8b84c455cfeb81bc060c6824dea473e54dc3
tree712d3d44d5b6f138da8675fad7b7aeb8cb975736
parent379a3c8ee44440d5afa505230ed8cb5b0d0e314b
KVM: x86: introduce kvm_can_use_hv_timer

Replace the ad hoc test in vmx_set_hv_timer with a test in the caller,
start_hv_timer.  This test is not Intel-specific and would be duplicated
when introducing the fast path for the TSC deadline MSR.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/vmx/vmx.c