]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: use static_call_cond for optional callbacks
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Feb 2022 19:18:07 +0000 (14:18 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Feb 2022 17:31:17 +0000 (12:31 -0500)
commit99b1e8189f3b8f327323145c40c6b72d6fb44d04
treef432f50161f47794e0528889ab6a659dccaf4824
parentc0f9d7e0aa22174b1a77b2ff312debcaf49afde2
KVM: x86: use static_call_cond for optional callbacks

SVM implements neither update_emulated_instruction nor
set_apic_access_page_addr.  Remove an "if" by calling them
with static_call_cond().

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c