Re: [PATCH v5 1/3] xen/x86: add nmi continuation framework

2020-11-12 Thread Jürgen Groß
On 12.11.20 14:41, Jan Beulich wrote: On 12.11.2020 14:14, Juergen Gross wrote: --- a/xen/arch/x86/genapic/x2apic.c +++ b/xen/arch/x86/genapic/x2apic.c @@ -89,6 +89,7 @@ static unsigned int cpu_mask_to_apicid_x2apic_cluster(const cpumask_t *cpumask) static void send_IPI_self_x2apic(uint8_t

Re: [PATCH v5 1/3] xen/x86: add nmi continuation framework

2020-11-12 Thread Jan Beulich
On 12.11.2020 14:14, Juergen Gross wrote: > --- a/xen/arch/x86/genapic/x2apic.c > +++ b/xen/arch/x86/genapic/x2apic.c > @@ -89,6 +89,7 @@ static unsigned int cpu_mask_to_apicid_x2apic_cluster(const > cpumask_t *cpumask) > > static void send_IPI_self_x2apic(uint8_t vector) > { > +/* NMI con

[PATCH v5 1/3] xen/x86: add nmi continuation framework

2020-11-12 Thread Juergen Gross
Actions in NMI context are rather limited as e.g. locking is rather fragile. Add a framework to continue processing in normal interrupt context after leaving NMI processing. This is done by a high priority interrupt vector triggered via a self IPI from NMI context, which will then call the contin