On Wed, 2025-08-27 at 17:30 -0700, Sagi Shahar wrote: > TDX module protects the EOI-bitmap which prevents the use of in-kernel > I/O APIC. See more details in the original patch [1] ^ missing a period > > The current implementation already enforces the use of split irqchip for > TDX but it does so at the vCPU creation time which is generally to late ^ too > to fallback to split irqchip. > > This patch follows Sean's recommendation from [2] and adds a check if > I/O APIC is supported for the VM at irqchip creation time. > > [1] https://lore.kernel.org/lkml/20250222014757.897978-11-binbin.wu@xxxxxxxxxxxxxxx/ > [2] https://lore.kernel.org/lkml/aK3vZ5HuKKeFuuM4@xxxxxxxxxx/ > > Suggested-by: Sean Christopherson <seanjc@xxxxxxxxxx> > Reviewed-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx> > Reviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx> > Signed-off-by: Sagi Shahar <sagis@xxxxxxxxxx> Acked-by: Kai Huang <kai.huang@xxxxxxxxx>