]> 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)
commit5443c71e4a826961848e4da7be2d0d20d9aa2d9e
treef432f50161f47794e0528889ab6a659dccaf4824
parentf3d820adc963a3f4f0c4fbcead7875032bbff7fa
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