x86/microcode: Do not upload microcode if CPUs are offline
authorAshok Raj <[email protected]>
Wed, 28 Feb 2018 10:28:43 +0000 (11:28 +0100)
committerThomas Gleixner <[email protected]>
Thu, 8 Mar 2018 09:19:26 +0000 (10:19 +0100)
commit30ec26da9967d0d785abc24073129a34c3211777
tree4873d07b0b79b943d6ec39266b0fe65c894119b9
parent91df9fdf51492aec9fed6b4cbd33160886740f47
x86/microcode: Do not upload microcode if CPUs are offline

Avoid loading microcode if any of the CPUs are offline, and issue a
warning. Having different microcode revisions on the system at any time
is outright dangerous.

[ Borislav: Massage changelog. ]

Signed-off-by: Ashok Raj <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Tom Lendacky <[email protected]>
Tested-by: Ashok Raj <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Cc: Arjan Van De Ven <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/kernel/cpu/microcode/core.c