]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/include/asm/nospec-branch.h
x86/bugs: Provide boot parameters for the spec_store_bypass_disable mitigation
[mirror_ubuntu-artful-kernel.git] / arch / x86 / include / asm / nospec-branch.h
index 67a5cbf150bdc2e4bf8e52a3ef8585cb9c435d51..13edec146a1208ca833280bb64fb11755e840708 100644 (file)
@@ -186,6 +186,12 @@ extern u64 x86_spec_ctrl_get_default(void);
 extern void x86_spec_ctrl_set_guest(u64);
 extern void x86_spec_ctrl_restore_host(u64);
 
+/* The Speculative Store Bypass disable variants */
+enum ssb_mitigation {
+       SPEC_STORE_BYPASS_NONE,
+       SPEC_STORE_BYPASS_DISABLE,
+};
+
 /*
  * On VMEXIT we must ensure that no RSB predictions learned in the guest
  * can be followed in the host, by overwriting the RSB completely. Both