Re: [RFC PATCH 05/56] x86/bugs: Reset spectre_v2 mitigations

Borislav Petkov
2025-11-05T11:03:48Z

On Tue, Nov 04, 2025 at 06:29:20PM -0800, Josh Poimboeuf wrote:
> Separate functions allows each reset function to stay close to its
> select/update/apply counterparts. That makes it easier to tell that
> it's undoing all the right things. Plus it preserves the existing
> logical code layout/separation between mitigations.

... with a forward declaration for each one? Because we don't have enough
functions in this file already? And even if the code structure is begging for
us to turn it a OOO design, we're not doing it?

Sorry, but one big function with comments is at least keeping it saner. And
I'm sure your favourite editor can help you jump back'n'forth easily. :-P

--
Regards/Gruss,
Boris.