Re: [PATCH v3 5/6] KVM: x86: make several AVIC callbacks optional

From: Paolo Bonzini
Date: Fri Feb 18 2022 - 12:41:38 EST


On 2/18/22 18:37, Sean Christopherson wrote:
True, on the other hand there's no reason why a hypothetical third vendor
would have to support it. The call is conditional to apicv_active being
true.
Ah, right, even if the the static_call_cond() is unnecessary because we want to
make the hook mandatory if APICv is supported, APICv itself may not be supported.

I'm not even sure we want to make it mandatory, in fact.

Also new full log:

----
All their invocations are conditional on vcpu->arch.apicv_active,
meaning that they need not be implemented by vendor code: even
though at the moment both vendors implement APIC virtualization,
all of them should be optional. In fact SVM does not need many of
them, and their implementation can be deleted now.
----

Paolo