All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/6] x86/ioapic: fix edge triggered interrupt migration
@ 2022-04-21 13:21 Roger Pau Monne
  2022-04-21 13:21 ` [PATCH RFC 1/6] x86/ioapic: set disable hook for masking edge interrupts Roger Pau Monne
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Roger Pau Monne @ 2022-04-21 13:21 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Jan Beulich, Andrew Cooper, Wei Liu, Kevin Tian,
	Paul Durrant

Hello,

Following series attempts to solve the issue with IO-APIC edge triggered
interrupts seeing an inconsistent RTE or IRTE when injected while being
migrated.

It's currently RFC because some patches have post commit message notes,
and because I'm not sure if patch 1 is really needed.  I originally had
the idea of suggesting to only backport patch 1 in order to fix the
issue in older releases, while leaving the more complex (and thus
error prone) IOMMU changes in unstable.  Note however that patch 1 is
just a workaround to prevent interrupts seeing inconsistent entries
while being updated, masking the entry just makes the warning go away,
but the interrupt will be lost.

Thanks, Roger.

Roger Pau Monne (6):
  x86/ioapic: set disable hook for masking edge interrupts
  x86/ioapic: add a raw field to RTE struct
  x86/ioapic: RTE modifications must use ioapic_write_entry
  x86/iommu: pass full IO-APIC RTE for remapping table update
  amd/iommu: atomically update remapping entries when possible
  x86/ioapic: mask entry while updating

 xen/arch/x86/include/asm/io_apic.h       |  72 ++++++-------
 xen/arch/x86/include/asm/iommu.h         |   3 +-
 xen/arch/x86/io_apic.c                   |  81 ++++++++++-----
 xen/drivers/passthrough/amd/iommu.h      |   2 +-
 xen/drivers/passthrough/amd/iommu_intr.c | 115 +++++++--------------
 xen/drivers/passthrough/vtd/extern.h     |   2 +-
 xen/drivers/passthrough/vtd/intremap.c   | 125 +++++++++++------------
 xen/drivers/passthrough/x86/iommu.c      |   4 +-
 xen/include/xen/iommu.h                  |   3 +-
 9 files changed, 195 insertions(+), 212 deletions(-)

-- 
2.35.1



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

end of thread, other threads:[~2022-07-05 14:51 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 13:21 [PATCH RFC 0/6] x86/ioapic: fix edge triggered interrupt migration Roger Pau Monne
2022-04-21 13:21 ` [PATCH RFC 1/6] x86/ioapic: set disable hook for masking edge interrupts Roger Pau Monne
2022-06-03 13:19   ` Jan Beulich
2022-06-03 14:53     ` Roger Pau Monné
2022-06-07  8:02       ` Jan Beulich
2022-04-21 13:21 ` [PATCH RFC 2/6] x86/ioapic: add a raw field to RTE struct Roger Pau Monne
2022-06-03 13:24   ` Jan Beulich
2022-06-03 14:54     ` Roger Pau Monné
2022-04-21 13:21 ` [PATCH RFC 3/6] x86/ioapic: RTE modifications must use ioapic_write_entry Roger Pau Monne
2022-06-03 13:34   ` Jan Beulich
2022-06-03 15:01     ` Roger Pau Monné
2022-06-07  8:35       ` Jan Beulich
2022-04-21 13:21 ` [PATCH RFC 4/6] x86/iommu: pass full IO-APIC RTE for remapping table update Roger Pau Monne
2022-04-21 13:21 ` [PATCH RFC 5/6] amd/iommu: atomically update remapping entries when possible Roger Pau Monne
2022-07-05 14:43   ` Jan Beulich
2022-04-21 13:21 ` [PATCH RFC 6/6] x86/ioapic: mask entry while updating Roger Pau Monne
2022-07-05 14:51   ` Jan Beulich
2022-05-20 12:36 ` [PATCH RFC 0/6] x86/ioapic: fix edge triggered interrupt migration Roger Pau Monné
2022-05-20 12:46   ` Jan Beulich
2022-05-20 13:41     ` 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.