linux/arch/x86/kernel/acpi
Petr Vaněk 8b37357a78 x86/acpi: Don't limit CPUs to 1 for Xen PV guests due to disabled ACPI
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 7c0edad364
("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: 7c0edad364 ("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
2025-04-07 16:35:21 +02:00
..
Makefile x86/acpi: Add support for CPU offlining for ACPI MADT wakeup method 2024-06-17 17:46:25 +02:00
apei.c
boot.c x86/acpi: Don't limit CPUs to 1 for Xen PV guests due to disabled ACPI 2025-04-07 16:35:21 +02:00
cppc.c cpufreq/amd-pstate: Replace all AMD_CPPC_* macros with masks 2025-03-06 13:01:25 -06:00
cstate.c x86/acpi/cstate: Improve Intel Family model checks 2025-03-19 11:19:46 +01:00
madt_playdead.S x86/cfi: Clean up linkage 2025-02-14 10:32:05 +01:00
madt_wakeup.c x86/acpi: Replace manual page table initialization with kernel_ident_mapping_init() 2025-03-19 11:12:29 +01:00
sleep.c x86/smpboot: Support parallel startup of secondary CPUs 2023-05-15 13:45:04 +02:00
sleep.h x86/acpi: Remove unused extern declaration acpi_copy_wakeup_routine() 2023-06-21 10:57:54 -07:00
wakeup_32.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
wakeup_64.S x86/cfi: Clean up linkage 2025-02-14 10:32:05 +01:00