Re: [PATCH] x86/MCE: Get microcode revision from cpu_info instead of boot_cpu_data
From: Borislav Petkov
Date: Fri Jun 01 2018 - 08:20:11 EST
On Fri, Jun 01, 2018 at 01:30:26PM +0200, Filippo Sironi wrote:
> Commit fa94d0c6e0f3 ("x86/MCE: Save microcode revision in machine check
> records") extended MCE entries to report the microcode revision taken
> from boot_cpu_data. Unfortunately, boot_cpu_data isn't updated on late
> microcode loading,
Actually, I'd prefer if we fixed *that* instead by adding:
/* Update boot_cpu_data's revision too, if we're on the BSP: */
if (c->cpu_index == boot_cpu_data.cpu_index)
boot_cpu_data.microcode = <new rev>;
to the end of ->apply_microcode() functions so that boot_cpu_data has
the correct revision too, in case something else queries it.
Thx.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--