aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorPetr Vaněk <[email protected]>2025-04-07 13:24:27 +0000
committerThomas Gleixner <[email protected]>2025-04-07 14:35:21 +0000
commit8b37357a78d7fa13d88ea822b35b40137da1c85e (patch)
tree4c1aa85783fd5485193ecf304a40c1c99fe3a2c2 /rust/helpers/platform.c
parentLinux 6.15-rc1 (diff)
downloadkernel-8b37357a78d7fa13d88ea822b35b40137da1c85e.tar.gz
kernel-8b37357a78d7fa13d88ea822b35b40137da1c85e.zip
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 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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions