mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
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) <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Link: https://patch.msgid.link/[email protected]
This commit is contained in:
1 parent
959d3f7565
commit
99cf1fb58e
1 file changed
-3
@@ -524,9 +524,6 @@ int __init snp_rmptable_init(void)
|
||||
memset(desc->rmp_entry, 0, desc->size);
|
||||
}
|
||||
|
||||
/* Flush the caches to ensure that data is written before SNP is enabled. */
|
||||
wbinvd_on_all_cpus();
|
||||
|
||||
/* MtrrFixDramModEn must be enabled on all the CPUs prior to enabling SNP. */
|
||||
on_each_cpu(mfd_enable, NULL, 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user