]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpu/hotplug, x86/acpi: Disable CPU offlining for ACPI MADT wakeup
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 14 Jun 2024 09:58:49 +0000 (12:58 +0300)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Jun 2024 15:45:34 +0000 (17:45 +0200)
commit66e48e491d1e1a0f243ebfcb9639b23de1a5db5e
treefa327aaabde7e3d6b6e03bacfcf51dd5dcb11266
parent1037e4c53e851682ff8d1ab656567a4d5a333c93
cpu/hotplug, x86/acpi: Disable CPU offlining for ACPI MADT wakeup

ACPI MADT doesn't allow to offline a CPU after it has been woken up.

Currently, CPU hotplug is prevented based on the confidential computing
attribute which is set for Intel TDX. But TDX is not the only possible user of
the wake up method. Any platform that uses ACPI MADT wakeup method cannot
offline CPU.

Disable CPU offlining on ACPI MADT wakeup enumeration.

This has no visible effects for users: currently, TDX guest is the only platform
that uses the ACPI MADT wakeup method.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Tao Liu <ltao@redhat.com>
Link: https://lore.kernel.org/r/20240614095904.1345461-5-kirill.shutemov@linux.intel.com
arch/x86/coco/core.c
arch/x86/kernel/acpi/madt_wakeup.c
include/linux/cc_platform.h
kernel/cpu.c