Re: [PATCH 5/5] KVM: x86: allow defining return-0 static calls

From: Peter Zijlstra
Date: Sun Feb 06 2022 - 09:10:14 EST


On Thu, Feb 03, 2022 at 07:40:25PM +0100, Paolo Bonzini wrote:
> On 2/2/22 19:18, Paolo Bonzini wrote:
> > A few vendor callbacks are only used by VMX, but they return an integer
> > or bool value. Introduce KVM_X86_OP_RET0 for them: a NULL value in
> > struct kvm_x86_ops will be changed to __static_call_return0.
>
> This also needs EXPORT_SYMBOL_GPL(__static_call_ret0). Peter, any
> objections?

__static_call_return0 I suppose, but no. Go ahead.