]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev: Create a function to clear/zero the RMP
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 24 Mar 2026 16:12:55 +0000 (10:12 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 28 Mar 2026 21:10:56 +0000 (22:10 +0100)
commit9c016c3f4928f436b9ad20f30a5a9d538490fbb4
treea7abf8c0cce79ad636a0218302eba2215336a7f3
parent531397a80360661b61fb69ab41c7359c1f7d35c1
x86/sev: Create a function to clear/zero the RMP

In preparation for delayed SNP initialization and disablement on shutdown,
create a function, clear_rmp(), that clears the RMP bookkeeping area and the
RMP entries.

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/20260324161301.1353976-2-tycho@kernel.org
arch/x86/virt/svm/sev.c