diff options
author | 2023-05-12 23:07:56 +0200 | |
---|---|---|
committer | 2023-05-15 13:45:05 +0200 | |
commit | 0c7ffa32dbd6b09a87fea4ad1de8b27145dfd9a6 (patch) | |
tree | 640bec0ff4daf801ae9313778d27b1cab268168a /mm | |
parent | x86/smpboot: Support parallel startup of secondary CPUs (diff) | |
download | linux-0c7ffa32dbd6b09a87fea4ad1de8b27145dfd9a6.tar.gz linux-0c7ffa32dbd6b09a87fea4ad1de8b27145dfd9a6.tar.bz2 linux-0c7ffa32dbd6b09a87fea4ad1de8b27145dfd9a6.zip |
x86/smpboot/64: Implement arch_cpuhp_init_parallel_bringup() and enable it
Implement the validation function which tells the core code whether
parallel bringup is possible.
The only condition for now is that the kernel does not run in an encrypted
guest as these will trap the RDMSR via #VC, which cannot be handled at that
point in early startup.
There was an earlier variant for AMD-SEV which used the GHBC protocol for
retrieving the APIC ID via CPUID, but there is no guarantee that the
initial APIC ID in CPUID is the same as the real APIC ID. There is no
enforcement from the secure firmware and the hypervisor can assign APIC IDs
as it sees fit as long as the ACPI/MADT table is consistent with that
assignment.
Unfortunately there is no RDMSR GHCB protocol at the moment, so enabling
AMD-SEV guests for parallel startup needs some more thought.
Intel-TDX provides a secure RDMSR hypercall, but supporting that is outside
the scope of this change.
Fixup announce_cpu() as e.g. on Hyper-V CPU1 is the secondary sibling of
CPU0, which makes the @cpu == 1 logic in announce_cpu() fall apart.
[ mikelley: Reported the announce_cpu() fallout
Originally-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Helge Deller <deller@gmx.de> # parisc
Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com> # Steam Deck
Link: https://lore.kernel.org/r/20230512205257.467571745@linutronix.de
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions