Re: [v6 1/1] x86/bugs: Implement mitigation for Predictive Store Forwarding

From: Pawan Gupta
Date: Wed May 19 2021 - 01:51:23 EST


On 17.05.2021 17:00, Ramakrishna Saripalli wrote:
From: Ramakrishna Saripalli <rk.saripalli@xxxxxxx>
[...]
--- a/arch/x86/include/asm/nospec-branch.h
+++ b/arch/x86/include/asm/nospec-branch.h
@@ -198,6 +198,12 @@ enum ssb_mitigation {
SPEC_STORE_BYPASS_SECCOMP,
};

+/* The Predictive Store forward control variant */
+enum psf_mitigation {
+ PREDICTIVE_STORE_FORWARD_NONE,
+ PREDICTIVE_STORE_FORWARD_DISABLE,
+};
+

This can be moved to bugs.c which is the only user of psf_mitigation.

Thanks,
Pawan