All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH v4 0/4] x86/smp: fix send_IPI_mask usage of scratch_cpumask
@ 2020-02-26 12:19 Roger Pau Monne
  2020-02-26 12:19 ` [Xen-devel] [PATCH v4 1/4] x86: introduce a nmi_count tracking variable Roger Pau Monne
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Roger Pau Monne @ 2020-02-26 12:19 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Julien Grall, Wei Liu, Konrad Rzeszutek Wilk,
	Andrew Cooper, Ian Jackson, George Dunlap, Jan Beulich,
	Roger Pau Monne

Hello,

Commit:

5500d265a2a8fa63d60c08beb549de8ec82ff7a5
x86/smp: use APIC ALLBUT destination shorthand when possible

Introduced a bogus usage of the scratch cpumask: it was used in a
function that could be called from interrupt context, and hence using
the scratch cpumask there is not safe. Patch #4 is a fix for that usage,
together with also preventing the usage of any per-CPU variables when
send_IPI_mask is called from #MC or NMI context. Previous patches are
preparatory changes.

Thanks, Roger.

Roger Pau Monne (4):
  x86: introduce a nmi_count tracking variable
  x86: track when in NMI context
  x86: track when in #MC context
  x86/smp: do not use scratch_cpumask when in interrupt or exception
    context

 xen/arch/x86/cpu/mcheck/mce.c |  2 ++
 xen/arch/x86/nmi.c            | 11 +++++------
 xen/arch/x86/smp.c            | 12 ++++++++++++
 xen/arch/x86/traps.c          | 10 +++++++++-
 xen/include/asm-x86/hardirq.h | 13 ++++++++++++-
 xen/include/asm-x86/nmi.h     |  2 ++
 xen/include/xen/irq_cpustat.h |  1 -
 7 files changed, 42 insertions(+), 9 deletions(-)

-- 
2.25.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-02-26 14:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 12:19 [Xen-devel] [PATCH v4 0/4] x86/smp: fix send_IPI_mask usage of scratch_cpumask Roger Pau Monne
2020-02-26 12:19 ` [Xen-devel] [PATCH v4 1/4] x86: introduce a nmi_count tracking variable Roger Pau Monne
2020-02-26 13:00   ` Jan Beulich
2020-02-26 12:19 ` [Xen-devel] [PATCH v4 2/4] x86: track when in NMI context Roger Pau Monne
2020-02-26 13:02   ` Jan Beulich
2020-02-26 12:19 ` [Xen-devel] [PATCH v4 3/4] x86: track when in #MC context Roger Pau Monne
2020-02-26 13:09   ` Jan Beulich
2020-02-26 12:19 ` [Xen-devel] [PATCH v4 4/4] x86/smp: do not use scratch_cpumask when in interrupt or exception context Roger Pau Monne
2020-02-26 12:27   ` Roger Pau Monné
2020-02-26 12:38   ` [Xen-devel] [PATCH v5 " Roger Pau Monne
2020-02-26 13:10     ` Jan Beulich
2020-02-26 14:02       ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.