diff options
| author | Thomas Gleixner <[email protected]> | 2023-10-02 12:00:08 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2023-10-24 13:05:55 +0000 |
| commit | 8f849ff63bcbc77670da03cb8f2b78b06257f455 (patch) | |
| tree | d53d92a3ca79ec251c1edaa3d046f6e15e3cfb1b /lib/test-string_helpers.c | |
| parent | x86/apic: Provide apic_force_nmi_on_cpu() (diff) | |
| download | kernel-8f849ff63bcbc77670da03cb8f2b78b06257f455.tar.gz kernel-8f849ff63bcbc77670da03cb8f2b78b06257f455.zip | |
x86/microcode: Handle "offline" CPUs correctly
Offline CPUs need to be parked in a safe loop when microcode update is
in progress on the primary CPU. Currently, offline CPUs are parked in
mwait_play_dead(), and for Intel CPUs, its not a safe instruction,
because the MWAIT instruction can be patched in the new microcode update
that can cause instability.
- Add a new microcode state 'UCODE_OFFLINE' to report status on per-CPU
basis.
- Force NMI on the offline CPUs.
Wake up offline CPUs while the update is in progress and then return
them back to mwait_play_dead() after microcode update is complete.
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
