OSDN Git Service

KVM: xen: Use static_call() for invoking kvm_x86_ops hooks
authorSean Christopherson <seanjc@google.com>
Fri, 28 Jan 2022 00:51:53 +0000 (00:51 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:47:18 +0000 (13:47 -0500)
commit0264a351090ca249a91a1c623f7c4229e015f17a
tree8121bb87ff49a66354a53df9f65300d1ad030670
parenta0941a64a97d50e1ae4b628c65d5f7847ef58398
KVM: xen: Use static_call() for invoking kvm_x86_ops hooks

Use static_call() for invoking kvm_x86_ops function that already have a
defined static call, mostly as a step toward having _all_ calls to
kvm_x86_ops route through a static_call() in order to simplify auditing,
e.g. via grep, that all functions have an entry in kvm-x86-ops.h, but
also because there's no reason not to use a static_call().

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220128005208.4008533-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/xen.c