On 11/25/21 01:20, isaku.yamahata@xxxxxxxxx wrote:
From: Sean Christopherson<sean.j.christopherson@xxxxxxxxx> Return true for kvm_vcpu_has_events() if the vCPU has a pending APICv interrupt to support TDX's usage of APICv. Unlike VMX, TDX doesn't have access to vmcs.GUEST_INTR_STATUS and so can't emulate posted interrupts, i.e. needs to generate a posted interrupt and more importantly can't manually move requested interrupts into the vIRR (which it also doesn't have access to).
Does this mean it is impossible to disable APICv on TDX? If so, please add a WARN.
Paolo