Skip to content

hw/vfio/platform: irqfd setup changes

Eric Auger qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- add "hw/vfio/platform: change interrupt/unmask fields into pointer"
- introduce vfio_irq_is_automasked helper function and for edge-sensitive IRQs, do not allocate/initialize unmask EventNotifier nor call vfio_set_resample_eventfd

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/vfio/platform: irqfd setup sequence updatehw/vfio/platform.c+29 -220 replies
2/3hw/vfio/platform: change interrupt/unmask fields into pointerhw/vfio/platform.c include/hw/vfio/vfio-platform.h+22 -170 replies
3/3hw/vfio/platform: do not set resamplefd for edge-sensitive IRQShw/vfio/platform.c trace-events+30 -160 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] hw/vfio/platform: irqfd setup changes

This series fixes a bug related to irqfd setup for edge sensitive IRQs and proposes a new startup sequence for irqfd signaling.

The current startup sequence brings some issues with respect to the oncoming ARM IRQ forwarding support. The new startup sequence starts either irqfd signaling or eventfd signaling and there is no risk the IRQ is active nor masked when irqfd/IRQ forwarding is setup.

---

v1 -> v2:
- add "hw/vfio/platform: change interrupt/unmask fields into pointer"
- introduce vfio_irq_is_automasked helper function and for edge-sensitive IRQs, do not allocate/initialize unmask EventNotifier nor call vfio_set_resample_eventfd

Eric Auger (3):
hw/vfio/platform: irqfd setup sequence update hw/vfio/platform: change interrupt/unmask fields into pointer hw/vfio/platform: do not set resamplefd for edge-sensitive IRQS

 hw/vfio/platform.c              | 116 ++++++++++++++++++++++++----------------
 include/hw/vfio/vfio-platform.h |   4 +-
 trace-events                    |   4 +-
 3 files changed, 75 insertions(+), 49 deletions(-)
Signature · 1 line
1.8.3.2