On Wed, Jul 07, 2021 at 05:54:58PM -0700, isaku.yamahata@xxxxxxxxx wrote: > From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > > TDX requires x2apic and "resets" vCPUs to have x2apic enabled. Model > this in QEMU and unconditionally enable x2apic interrupt routing. We have a cpu flag for that. IMHO you should verify it is set and error out if not instead of silently fixing up things. take care, Gerd