]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/smpboot: Allow parallel bringup for SEV-ES parallel-6.2-v17
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 7 Mar 2023 19:06:50 +0000 (19:06 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 27 Mar 2023 18:41:37 +0000 (19:41 +0100)
commitffb19c897233e4d93c4cd27833685e67dc16b176
tree125c62e69feeed1c1099c4563e85d353ecfc4fe6
parent0c5def3c0ecab96e2b9b4901db70684974f67522
x86/smpboot: Allow parallel bringup for SEV-ES

Enable parallel bringup for SEV-ES guests. The APs can't actually
execute the CPUID instruction directly during early startup, but they
can make the GHCB call directly instead, just as the VC trap handler
would do.

Thanks to Sabin for talking me through the way this works.

Suggested-by: Sabin Rapan <sabrapan@amazon.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Usama Arif <usama.arif@bytedance.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
arch/x86/coco/core.c
arch/x86/include/asm/coco.h
arch/x86/include/asm/sev-common.h
arch/x86/include/asm/smp.h
arch/x86/kernel/head_64.S
arch/x86/kernel/smpboot.c