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)
commit2a89061451c799bd36dbe1b90613c35212fc1f64
treef432f50161f47794e0528889ab6a659dccaf4824
parent8a2897853c53fd3d0e381a46b194889cf6da3391
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