Skip to content

x86/microcode: Refactor NMI-based rendezvous mechanism to stop-machine

Chang S. Bae lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 8 repliesIn review
  2. v39 patches 6 repliesSuperseded
  3. v211 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches19 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9stop_machine: Refactor multi-CPU stop glue codekernel/stop_machine.c+20 -151 reply
2/9stop_machine: Add NMI-based execution patharch/Kconfig include/linux/stop_machine.h kernel/stop_machine.c+117 -15 replies
3/9stop_machine: Introduce stop_machine_nmi_cpuslocked()include/linux/stop_machine.h kernel/stop_machine.c+68 -00 replies
4/9x86/apic: Implement self-NMI supportarch/x86/kernel/apic/ipi.c+10 -00 replies
5/9x86/nmi: Support NMI stop-machine handlerarch/x86/kernel/nmi.c+9 -00 replies
6/9x86/microcode: Distinguish NMI control path on stop-machine callbackarch/x86/kernel/cpu/microcode/core.c+13 -170 replies
7/9x86/microcode: Use stop-machine NMI facilityarch/x86/Kconfig arch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/core.c +1 more+4 -200 replies
8/9x86/nmi: Simplify offline microcode handler invocationarch/x86/kernel/nmi.c+2 -22 replies
9/9x86/microcode: Remove microcode_nmi_handler_enablearch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/core.c+2 -160 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchDavid Kaplan
1/9
2/9Originally-by
3/9Originally-by
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/9] x86/microcode: Refactor NMI-based rendezvous mechanism to stop-machine

Hi all,

This revision has a couple of minor changes on top of 7.4-rc1:

* Remove the fallback prototype (patch3)
* Add a comment at the stop-machine's NMI handler call site (patch5)

V3 previously included several changes addressing Sashiko's feedback. For the background and overall design, please refer to the more detailed V2 cover [*].

I'll first wait to see whether there is any further feedback from Sashiko. Otherwise, I think this series is getting close to being ready.

The series is also available in this repository:
git://github.com/intel-staging/microcode.git nmi-stop-machine_v4

Thanks,
Chang

[*] https://lore.kernel.org/[email protected]

Chang S. Bae (7):
stop_machine: Refactor multi-CPU stop glue code
stop_machine: Add NMI-based execution path
stop_machine: Introduce stop_machine_nmi_cpuslocked() x86/microcode: Distinguish NMI control path on stop-machine callback x86/microcode: Use stop-machine NMI facility
x86/nmi: Simplify offline microcode handler invocation x86/microcode: Remove microcode_nmi_handler_enable

David Kaplan (2):
x86/apic: Implement self-NMI support
x86/nmi: Support NMI stop-machine handler

 arch/Kconfig                         |   3 +
 arch/x86/Kconfig                     |   1 +
 arch/x86/include/asm/microcode.h     |  11 --
 arch/x86/kernel/apic/ipi.c           |  10 ++
 arch/x86/kernel/cpu/microcode/core.c |  35 ++----
 arch/x86/kernel/nmi.c                |  12 +-
 include/linux/stop_machine.h         |  38 ++++++
 kernel/stop_machine.c                | 180 ++++++++++++++++++++++++---
 8 files changed, 232 insertions(+), 58 deletions(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.53.0