Re: [Xen-devel] [PATCH v12] microcode: rendezvous CPUs in NMI handler and load ucode

2019-09-30 Thread Jan Beulich
On 27.09.2019 18:12, Chao Gao wrote: > @@ -105,23 +110,40 @@ void __init microcode_set_module(unsigned int idx) > } > > /* > - * The format is '[|scan]'. Both options are optional. > - * If the EFI has forced which of the multiboot payloads is to be used, > - * no parsing will be attempted. >

[Xen-devel] [PATCH v12] microcode: rendezvous CPUs in NMI handler and load ucode

2019-09-27 Thread Chao Gao
When one core is loading ucode, handling NMI on sibling threads or on other cores in the system might be problematic. By rendezvousing all CPUs in NMI handler, it prevents NMI acceptance during ucode loading. Basically, some work previously done in stop_machine context is moved to NMI handler.