diff options
author | Yosry Ahmed <yosry.ahmed@linux.dev> | 2025-02-27 04:27:07 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-02-27 12:57:20 +0300 |
commit | 549435aab49ae83d60a08795de6cf0e866f3b2ec (patch) | |
tree | 7fd85471fdc9d3db5bde57d47f70160c059601b0 /tools/perf/scripts/python/parallel-perf.py | |
parent | 8442df2b49ed9bcd67833ad4f091d15ac91efd00 (diff) | |
download | linux-549435aab49ae83d60a08795de6cf0e866f3b2ec.tar.xz |
x86/bugs: Move the X86_FEATURE_USE_IBPB check into callers
indirect_branch_prediction_barrier() only performs the MSR write if
X86_FEATURE_USE_IBPB is set, using alternative_msr_write(). In
preparation for removing X86_FEATURE_USE_IBPB, move the feature check
into the callers so that they can be addressed one-by-one, and use
X86_FEATURE_IBPB instead to guard the MSR write.
Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Acked-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20250227012712.3193063-2-yosry.ahmed@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions