Re: [PATCH 7/7] x86/microcode: Synchronize late microcode loading

From: Tom Lendacky
Date: Mon Mar 05 2018 - 17:09:46 EST


On 2/28/2018 4:28 AM, Borislav Petkov wrote:
> From: Ashok Raj <ashok.raj@xxxxxxxxx>
>
> Original idea by Ashok, completely rewritten by Borislav.
>
> Before you read any further: the early loading method is still the
> preferred one and you should always do that. The following patch is
> improving the late loading mechanism for long running jobs and cloud use
> cases.
>
> Gather all cores and serialize the microcode update on them by doing it
> one-by-one to make the late update process as reliable as possible and
> avoid potential issues caused by the microcode update.
>
> Signed-off-by: Ashok Raj <ashok.raj@xxxxxxxxx>
> [Rewrite completely. ]
> Co-developed-by: Borislav Petkov <bp@xxxxxxx>
> Signed-off-by: Borislav Petkov <bp@xxxxxxx>
> ---
> arch/x86/kernel/cpu/microcode/core.c | 118 +++++++++++++++++++++++++++--------
> 1 file changed, 92 insertions(+), 26 deletions(-)
>

Reviewed-by: Tom Lendacky <thomas.lendacky@xxxxxxx>