X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Fx86%2FKconfig;h=d02b04d3009668b45aa050484e346d900097f4bf;hb=370d33da35e31c1544eb77bcf2539f09b1064b9c;hp=819f8c2e2c67695cecbf88ca11d3b2765e873e0f;hpb=d11f96d0c0c30e6ed73049c752a1ca7621e7062f;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 819f8c2..d02b04d 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -468,6 +468,18 @@ config RETPOLINE branches. Requires a compiler with -mindirect-branch=thunk-extern support for full protection. The kernel may run slower. +config CC_HAS_SLS + def_bool $(cc-option,-mharden-sls=all) + +config SLS + bool "Mitigate Straight-Line-Speculation" + depends on CC_HAS_SLS && X86_64 + default n + help + Compile the kernel with straight-line-speculation options to guard + against straight line speculation. The kernel image might be slightly + larger. + config X86_CPU_RESCTRL bool "x86 CPU resource control support" depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD)