KVM: x86: remove KVM_X86_OP_NULL and mark optional kvm_x86_ops
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Dec 2021 13:12:28 +0000 (08:12 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Feb 2022 17:31:27 +0000 (12:31 -0500)
commite4fc23bad813591417f466beb7e833cdd2089cf6
tree9fc5f68a13af8e7c3b929c73fd2531e7034e294f
parent2a89061451c799bd36dbe1b90613c35212fc1f64
KVM: x86: remove KVM_X86_OP_NULL and mark optional kvm_x86_ops

The original use of KVM_X86_OP_NULL, which was to mark calls
that do not follow a specific naming convention, is not in use
anymore.  Instead, let's mark calls that are optional because
they are always invoked within conditionals or with static_call_cond.
Those that are _not_, i.e. those that are defined with KVM_X86_OP,
must be defined by both vendor modules or some kind of NULL pointer
dereference is bound to happen at runtime.

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