Re: [PATCH v2] x86/bugs: Break down mitigations configurations

Breno Leitao
2023-06-21T22:53:05Z

On Wed, Jun 21, 2023 at 03:35:45PM -0700, Dave Hansen wrote:
> On 6/21/23 12:41, Pawan Gupta wrote:
> > Yes, a single series (or a patch) that adds config for each mitigation
> > would be good.
>
> Do people _really_ want per-mitigation compile-time controls? That
> seems like kinda a pain.
>
> I Boris suggested it, but it seems like a _bit_ of overkill to me.
>
> Would a compile-time option that just defaulted _everything_ to
> mitigations=off behavior work instead? That way we don't end up with a
> billion new config options.

This is exactly what my original patch proposed. It solves the problem with
a few lines of changes.