OSDN Git Service

arm64: spectre: increase parameters that can be used to turn off bhb mitigation indiv...
authorLiu Song <liusong@linux.alibaba.com>
Fri, 26 Aug 2022 11:40:50 +0000 (19:40 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 Sep 2022 18:02:22 +0000 (19:02 +0100)
commit877ace9eab7de032f954533afd5d1ecd0cf62eaf
tree8bf06a8f23f1aeb42a3f1a2c1867d22b5da34466
parent8eb858c44b98e0326bb32fca34ae671995cd73bb
arm64: spectre: increase parameters that can be used to turn off bhb mitigation individually

In our environment, it was found that the mitigation BHB has a great
impact on the benchmark performance. For example, in the lmbench test,
the "process fork && exit" test performance drops by 20%.
So it is necessary to have the ability to turn off the mitigation
individually through cmdline, thus avoiding having to compile the
kernel by adjusting the config.

Signed-off-by: Liu Song <liusong@linux.alibaba.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/1661514050-22263-1-git-send-email-liusong@linux.alibaba.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/admin-guide/kernel-parameters.txt
arch/arm64/kernel/proton-pack.c