Re: [PATCH v2 1/5] x86/bugs: Use early_param for spectre_v2_user
From: Borislav Petkov
Date: Wed Aug 20 2025 - 14:38:23 EST
On Tue, Aug 19, 2025 at 02:21:56PM -0500, David Kaplan wrote:
> Most of the mitigations in bugs.c use early_param to parse their command
> line options. Modify spectre_v2_user to use early_param for consistency.
>
> Remove spec_v2_user_print_cond() because informing a user about their
> cmdline choice isn't very interesting and the chosen mitigation is already
> printed in spectre_v2_user_update_mitigation().
>
> Signed-off-by: David Kaplan <david.kaplan@xxxxxxx>
> ---
> arch/x86/kernel/cpu/bugs.c | 65 +++++++++++++++-----------------------
> 1 file changed, 26 insertions(+), 39 deletions(-)
Reviewed-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette