]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/virt/sev: Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN
authorTycho Andersen (AMD) <tycho@kernel.org>
Mon, 9 Mar 2026 18:00:44 +0000 (12:00 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 9 Mar 2026 20:48:46 +0000 (21:48 +0100)
commit99cf1fb58e68291d408b4c4484181cf88f081857
treea3f69029865f9612a271a1c45cef4254c17da220
parent959d3f7565352fab844ae73a722631c5f615427f
x86/virt/sev: Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN

WBINVD is required before SNP_INIT(_EX), but not before setting
MSR_AMD64_SYSCFG_SNP_EN, since the ccp driver already does its own WBINVD
before SNP_INIT (and this one would be too early for that anyway...).

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