]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/boot: Drop redundant RMPADJUST in SEV SVSM presence check
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:13 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 3 Sep 2025 15:59:09 +0000 (17:59 +0200)
commit68a501d7fd82454525797971c6a0005ceeb93153
tree9e651d1c7cc81a43061e1fa3beff38de67ed7089
parentc54604fb7f2522fec5b97e86103ec49e539e80fe
x86/boot: Drop redundant RMPADJUST in SEV SVSM presence check

snp_vmpl will be assigned a non-zero value when executing at a VMPL other than
0, and this is inferred from a call to RMPADJUST, which only works when
running at VMPL0.

This means that testing snp_vmpl is sufficient, and there is no need to
perform the same check again.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250828102202.1849035-34-ardb+git@google.com
arch/x86/boot/compressed/sev.c