Re: [PATCH v2] x86/bugs: Explicitly clear speculative MSR bits
From: Borislav Petkov
Date: Mon Nov 28 2022 - 18:35:05 EST
On Mon, Nov 28, 2022 at 03:02:19PM -0800, Pawan Gupta wrote:
> Yes thats a cleaner approach, except that the late microcode load will
> ruin the MSR:
>
> microcode_reload_late()
> microcode_check()
> get_cpu_cap()
> init_speculation_control()
Microcode late loading ruins a lot of crap already anyway.
Then I guess we'll have to look for a better place for this on the init
path - I don't want any more hackery in the hw vuln nightmare code.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette