diff options
| author | Sean Christopherson <[email protected]> | 2024-04-09 17:51:05 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2024-04-10 14:22:47 +0000 |
| commit | f337a6a21e2fd67eadea471e93d05dd37baaa9be (patch) | |
| tree | 1aee887b1f1f6a769fa0eb8ab6b5f63ba946d5db /tools/perf/scripts/python/sctop.py | |
| parent | x86/topology: Don't update cpu_possible_map in topo_set_cpuids() (diff) | |
| download | kernel-f337a6a21e2fd67eadea471e93d05dd37baaa9be.tar.gz kernel-f337a6a21e2fd67eadea471e93d05dd37baaa9be.zip | |
x86/cpu: Actually turn off mitigations by default for SPECULATION_MITIGATIONS=n
Initialize cpu_mitigations to CPU_MITIGATIONS_OFF if the kernel is built
with CONFIG_SPECULATION_MITIGATIONS=n, as the help text quite clearly
states that disabling SPECULATION_MITIGATIONS is supposed to turn off all
mitigations by default.
│ If you say N, all mitigations will be disabled. You really
│ should know what you are doing to say so.
As is, the kernel still defaults to CPU_MITIGATIONS_AUTO, which results in
some mitigations being enabled in spite of SPECULATION_MITIGATIONS=n.
Fixes: f43b9876e857 ("x86/retbleed: Add fine grained Kconfig knobs")
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Daniel Sneddon <[email protected]>
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
