x86/acpi: Dont invoke topology_register_apic() for XEN PV
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:43 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:42 +0000 (22:07 +0100)
commitcab8e164a49c0ee5c9acb7edec33d76422d831bf
treed22cbc05a101a4e1915214fc68045c14cde15e7f
parent8098428c541212e9835c1771ee90caa968ffef4f
x86/acpi: Dont invoke topology_register_apic() for XEN PV

The MADT table for XEN/PV dom0 is not really useful and registering the
APICs is momentarily a pointless exercise because XENPV does not use an
APIC at all.

It overrides the x86_init.mpparse.parse_smp_config() callback, resets
num_processors and counts how many of them are provided by the hypervisor.

This is in the way of cleaning up the APIC registration. Prevent MADT
registration for XEN/PV temporarily until the rework is completed and
XEN/PV can use the MADT again.

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.885489468@linutronix.de
arch/x86/kernel/acpi/boot.c