Re: [Xen-devel] [PATCH 1/3] x86/nmi: Corrections and improvements to do_nmi_stats()

2020-02-18 Thread Jan Beulich
On 17.02.2020 12:17, Andrew Cooper wrote: > --- a/xen/arch/x86/nmi.c > +++ b/xen/arch/x86/nmi.c > @@ -587,25 +587,25 @@ static void do_nmi_trigger(unsigned char key) > > static void do_nmi_stats(unsigned char key) > { > -int i; > -struct domain *d; > -struct vcpu *v; > +const

[Xen-devel] [PATCH 1/3] x86/nmi: Corrections and improvements to do_nmi_stats()

2020-02-17 Thread Andrew Cooper
The hardware domain doesn't necessarily have the domid 0. Render v instead, adjusting the strings to avoid printing trailing whitespace. Rename i to cpu, and use separate booleans for pending/masked. Drop the unnecessary domain local variable. Signed-off-by: Andrew Cooper --- CC: Jan Beulich