x86/cpu/topology: Reject unknown APIC IDs on ACPI hotplug
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:57 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:43 +0000 (22:07 +0100)
commit7cdcdab1a660bbe9f98bf1591c048ce7ccee59e0
tree8085a1efc8186dcb1d5ead2fec062f4da965e711
parentf1f758a80516775b5d12d7c93cbedb2a08cd4c98
x86/cpu/topology: Reject unknown APIC IDs on ACPI hotplug

The topology bitmaps track all possible APIC IDs which have been registered
during enumeration. As sizing and further topology information is going to
be derived from these bitmaps, reject attempts to hotplug an APIC ID which
was not registered during enumeration.

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/20240213210252.462231229@linutronix.de
arch/x86/kernel/cpu/topology.c