summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Auger2015-10-05 20:30:12 +0200
committerAlex Williamson2015-10-05 20:30:12 +0200
commita22313deca720e038ebc5805cf451b3a685d29ce (patch)
tree709b5b7c0502cd08ca3f8934c9fcf60b728469be /include
parenthw/vfio/platform: irqfd setup sequence update (diff)
downloadqemu-a22313deca720e038ebc5805cf451b3a685d29ce.tar.gz
qemu-a22313deca720e038ebc5805cf451b3a685d29ce.tar.xz
qemu-a22313deca720e038ebc5805cf451b3a685d29ce.zip
hw/vfio/platform: change interrupt/unmask fields into pointer
unmask EventNotifier might not be initialized in case of edge sensitive irq. Using EventNotifier pointers make life simpler to handle the edge-sensitive irqfd setup. Signed-off-by: Eric Auger <eric.auger@linaro.org> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/vfio/vfio-platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/vfio/vfio-platform.h b/include/hw/vfio/vfio-platform.h
index c5cf1d79f3..b468f80b1e 100644
--- a/include/hw/vfio/vfio-platform.h
+++ b/include/hw/vfio/vfio-platform.h
@@ -34,8 +34,8 @@ enum {
typedef struct VFIOINTp {
QLIST_ENTRY(VFIOINTp) next; /* entry for IRQ list */
QSIMPLEQ_ENTRY(VFIOINTp) pqnext; /* entry for pending IRQ queue */
- EventNotifier interrupt; /* eventfd triggered on interrupt */
- EventNotifier unmask; /* eventfd for unmask on QEMU bypass */
+ EventNotifier *interrupt; /* eventfd triggered on interrupt */
+ EventNotifier *unmask; /* eventfd for unmask on QEMU bypass */
qemu_irq qemuirq;
struct VFIOPlatformDevice *vdev; /* back pointer to device */
int state; /* inactive, pending, active */