Re: [PATCH] cpu/bugs: Disable CPU mitigations at compilation time

From: Borislav Petkov
Date: Tue Jun 13 2023 - 12:20:45 EST


On Tue, Jun 13, 2023 at 09:02:50AM -0700, Breno Leitao wrote:
> Is it OK if I send a patch that would disable these mitigations if
> CONFIG_SPECULATION_MITIGATIONS is set to "no"?

Isn't this the direction we're going to?

So yes, I was suggesting exactly that - add those mitigations to that
submenu so that they can be controlled with config options too, like the
others.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette