diff options
author | Yosry Ahmed <yosry.ahmed@linux.dev> | 2025-02-27 04:27:12 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-02-27 12:57:21 +0300 |
commit | 8f64eee70cdd3bb8c3ec7d30f0d1f52922aaef7c (patch) | |
tree | 137e4e83688128f701e941675145ef0e63617e3e /tools/perf/scripts/python/stackcollapse.py | |
parent | 8c4f28cd81fe86033918eec69d5280b532c05842 (diff) | |
download | linux-8f64eee70cdd3bb8c3ec7d30f0d1f52922aaef7c.tar.xz |
x86/bugs: Remove X86_FEATURE_USE_IBPB
X86_FEATURE_USE_IBPB was introduced in:
2961298efe1e ("x86/cpufeatures: Clean up Spectre v2 related CPUID flags")
to have separate flags for when the CPU supports IBPB (i.e. X86_FEATURE_IBPB)
and when an IBPB is actually used to mitigate Spectre v2.
Ever since then, the uses of IBPB expanded. The name became confusing
because it does not control all IBPB executions in the kernel.
Furthermore, because its name is generic and it's buried within
indirect_branch_prediction_barrier(), it's easy to use it not knowing
that it is specific to Spectre v2.
X86_FEATURE_USE_IBPB is no longer needed because all the IBPB executions
it used to control are now controlled through other means (e.g.
switch_mm_*_ibpb static branches).
Remove the unused feature bit.
Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20250227012712.3193063-7-yosry.ahmed@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions