]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev: Allow non-VMPL0 execution when an SVSM is present
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 5 Jun 2024 15:18:56 +0000 (10:18 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Jun 2024 18:42:58 +0000 (20:42 +0200)
commit99ef9f59847cab1f9091cd4b9d7efbee0ae4fc86
tree63b6b544590a06603338728a53fa6eebfef4eadf
parent627dc671518b7f004ce04c45e8711f8dca94a57c
x86/sev: Allow non-VMPL0 execution when an SVSM is present

To allow execution at a level other than VMPL0, an SVSM must be present.
Allow the SEV-SNP guest to continue booting if an SVSM is detected and
the hypervisor supports the SVSM feature as indicated in the GHCB
hypervisor features bitmap.

  [ bp: Massage a bit. ]

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/2ce7cf281cce1d0cba88f3f576687ef75dc3c953.1717600736.git.thomas.lendacky@amd.com
arch/x86/boot/compressed/sev.c
arch/x86/include/asm/sev-common.h
arch/x86/kernel/sev.c