On Wed Nov 12, 2025 at 3:51 PM CET, Teddy Astie wrote: > Introduce a new option to start the BSP vCPU in x2APIC mode instead > of xAPIC mode. Expose this in xl through a new "x2apic_mode" option. > > Signed-off-by: Teddy Astie <[email protected]> > --- > Cc: Andrew Cooper <[email protected]> > Cc: Jan Beulich <[email protected]> > Cc: Alejandro Vallejo <[email protected]> > Cc: Grygorii Strashko <[email protected]> > > Later on, we could consider with this option to use x2APIC ACPI > tables instead of xAPIC ones. > > There is also some room into introducing a new Kconfig option to > only support x2apic mode, which would change how the "Xen default" > would behave. > > changed in v2: > - only pre-enable instead of forcing > - use domain builder to pre-enable instead of introducing a new domain > creation flag
Hmmm. For dom0less/Hyperlaunch and CPU hotplug it'd be beneficial to actually have it in the domain creation struct, I think, annoying as this might sound (because it's a circle back to what you had before) could we keep the misc_flag with the different meaning of "preenable x2APIC" rather than "force"? Then on each vCPU creation (or even hotplug) we could check whether they need to be preinitialised as x2APIC or not. Otherwise hotplug needs different treatment. On the plus side, Hyperlaunch would merely have a new trivial binding rather than an ad-hoc solution. Cheers, Alejandro
