Re: [PATCH 1/1] x86/fpu: Allow clearcpuid= to clear several bits

From: Andi Kleen
Date: Wed Apr 22 2020 - 21:41:40 EST


>
> I did wonder about that. However, cmdline_find_option() is specifically documented as
>
> * Find a non-boolean option (i.e. option=argument). In accordance with
> * standard Linux practice, if this option is repeated, this returns the
> * last instance on the command line.

Okay so would need a special version that uses the first and an option
to pass the cmdline string.

>
> And since that appeared in 2017 I decided to stick with the new-fangled interface :) This is a little-used feature; I'm not sure it's worth the effort of parsing the command line for the old style. What do you think?

I'm not sure it's that little used. We use it quite a bit for testing
and workarounds, and it might be that some of those are deployed.

-Andi