Re: [PATCH v2] arm64: spectre: increase parameters that can be used to turn off bhb mitigation individually

From: Catalin Marinas
Date: Wed Sep 07 2022 - 10:29:20 EST


On Fri, Aug 26, 2022 at 07:40:50PM +0800, Liu Song wrote:
> From: Liu Song <liusong@xxxxxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxx>

If people want to disable this mitigation and know what they are doing,
I have no objection:

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>

(I guess that's more like 6.1 material)

--
Catalin