]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/acpi: Don't limit CPUs to 1 for Xen PV guests due to disabled ACPI
authorPetr Vaněk <arkamar@atlas.cz>
Mon, 7 Apr 2025 13:24:27 +0000 (15:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:05 +0000 (10:15 +0200)
commit857e9432dab9daf4cd1a8278c6a8c4662e63dbc0
treeb2d20530ae14314483c4faa5158db17ad06e9f4d
parent9ddc7edc558acef8dd4f645af3683b226e2b590c
x86/acpi: Don't limit CPUs to 1 for Xen PV guests due to disabled ACPI

[ Upstream commit 8b37357a78d7fa13d88ea822b35b40137da1c85e ]

Xen disables ACPI for PV guests in DomU, which causes acpi_mps_check() to
return 1 when CONFIG_X86_MPPARSE is not set. As a result, the local APIC is
disabled and the guest is later limited to a single vCPU, despite being
configured with more.

This regression was introduced in version 6.9 in commit 7c0edad3643f
("x86/cpu/topology: Rework possible CPU management"), which added an
early check that limits CPUs to 1 if apic_is_disabled.

Update the acpi_mps_check() logic to return 0 early when running as a Xen
PV guest in DomU, preventing APIC from being disabled in this specific case
and restoring correct multi-vCPU behaviour.

Fixes: 7c0edad3643f ("x86/cpu/topology: Rework possible CPU management")
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250407132445.6732-2-arkamar@atlas.cz
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kernel/acpi/boot.c