KVM: x86: Use static_call() for .vcpu_deliver_sipi_vector()
authorSean Christopherson <seanjc@google.com>
Fri, 28 Jan 2022 00:51:51 +0000 (00:51 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:47:18 +0000 (13:47 -0500)
commita0941a64a97d50e1ae4b628c65d5f7847ef58398
treee0fde25b393985e7485a27a40eff9122cc6c5cd0
parentef2d488c652150df3c580a53f9e5d6f307e9b7e4
KVM: x86: Use static_call() for .vcpu_deliver_sipi_vector()

Define and use a static_call() for kvm_x86_ops.vcpu_deliver_sipi_vector(),
mostly so that the op is defined in kvm-x86-ops.h.  This will allow using
KVM_X86_OP in vendor code to wire up the implementation.  Any performance
gains eeked out by using static_call() is a happy bonus and not the
primary motiviation.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220128005208.4008533-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/kvm/lapic.c