On Tue, Jul 06, 2021, Paolo Bonzini wrote: > On 03/07/21 00:04, isaku.yamahata@xxxxxxxxx wrote: > > From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > > > > Add an option to skip the IRR check in kvm_wait_lapic_expire(). This > > will be used by TDX to wait if there is an outstanding notification for > > a TD, i.e. a virtual interrupt is being triggered via posted interrupt > > processing. KVM TDX doesn't emulate PI processing, i.e. there will > > never be a bit set in IRR/ISR, so the default behavior for APICv of > > querying the IRR doesn't work as intended. > > > > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > > Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx> > > Is there a better (existing after the previous patches) flag to test, or > possibly can it use vm_type following the suggestion I gave for patch 28? Not sure if there's a "better" flag, but there's most definitely a flag somewhere that will suffice :-)