x86/xen/smp_pv: Register fake APICs
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:44 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:42 +0000 (22:07 +0100)
commite7530702346637af46bca1d114e6d63312eb3461
treed85083bac01753388a3db927853ec9f856b3005e
parentcab8e164a49c0ee5c9acb7edec33d76422d831bf
x86/xen/smp_pv: Register fake APICs

XENPV does not use the APIC. It's just piggy packing on the infrastructure
and fiddles with global variables as it sees fit.

These global variables are going away, so let XENPV register pseudo APIC
IDs to keep the accounting correct and keep up the illusion that XEN/PV is
something sane.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240213210251.940043512@linutronix.de
arch/x86/xen/smp_pv.c