]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/virt/sev: Keep the RMP table bookkeeping area mapped
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 9 Mar 2026 18:00:45 +0000 (12:00 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 9 Mar 2026 20:49:18 +0000 (21:49 +0100)
commitcca149429956745293ea94865ff8be6f77cc003d
tree5a692804f954756327dc4169ea48afb9a4037e3b
parent99cf1fb58e68291d408b4c4484181cf88f081857
x86/virt/sev: Keep the RMP table bookkeeping area mapped

In preparation for delayed SNP initialization and disablement on shutdown, the
RMP will need to be cleared each time SNP is disabled. Maintain the mapping to
the RMP bookkeeping area to avoid mapping and unmapping it each time and any
possible errors that may arise from that.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Tycho Andersen (AMD) <tycho@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260309180053.2389118-4-tycho@kernel.org
arch/x86/virt/svm/sev.c