]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/smpboot: Allow parallel bringup for SEV-ES parallel-6.2-rc8-v12bis
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 7 Mar 2023 19:06:50 +0000 (19:06 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 7 Mar 2023 19:20:13 +0000 (19:20 +0000)
commit8a53f16b29065ddbde40a73415dae32d2f4c82e5
tree87e411f53d4ff917fed7842a1d41486559688f36
parent1cf4bab159a6e97a4cc1b16fbf4efbbff8f0cd28
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.

Factor out a prepare_parallel_bringup() function to help reduce the level
of complexity by allowing a simple 'return false' in the bail-out cases/

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>
arch/x86/include/asm/sev-common.h
arch/x86/include/asm/smp.h
arch/x86/kernel/head_64.S
arch/x86/kernel/smpboot.c