Skip to content

RFC x86/ioapic: fix edge triggered interrupt migration

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/ioapic: set disable hook for masking edge interruptsxen/arch/x86/io_apic.c+1 -13 replies
2/6x86/ioapic: add a raw field to RTE structxen/arch/x86/include/asm/io_apic.h+30 -272 replies
3/6x86/ioapic: RTE modifications must use ioapic_write_entryxen/arch/x86/include/asm/io_apic.h xen/arch/x86/io_apic.c+20 -323 replies
4/6x86/iommu: pass full IO-APIC RTE for remapping table updatexen/arch/x86/include/asm/iommu.h xen/arch/x86/io_apic.c xen/drivers/passthrough/amd/iommu.h +5 more+80 -1480 replies
5/6amd/iommu: atomically update remapping entries when possiblexen/drivers/passthrough/amd/iommu_intr.c+28 -31 reply
6/6x86/ioapic: mask entry while updatingxen/arch/x86/io_apic.c+40 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/6] x86/ioapic: fix edge triggered interrupt migration

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(-)
Signature · 1 line
2.35.1