hw/vfio/platform: do not set resamplefd for edge-sensitive IRQS
commita5b39cd3f647eaaaef5b648beda5cb2f387418c0
authorEric Auger <eric.auger@linaro.org>
Mon, 5 Oct 2015 18:30:12 +0000 (5 12:30 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 5 Oct 2015 18:30:12 +0000 (5 12:30 -0600)
treea7c6d69a52116ae3bf9524cd412df845b8249aab
parenta22313deca720e038ebc5805cf451b3a685d29ce
hw/vfio/platform: do not set resamplefd for edge-sensitive IRQS

In irqfd mode, current code attempts to set a resamplefd whatever
the type of the IRQ. For an edge-sensitive IRQ this attempt fails
and as a consequence, the whole irqfd setup fails and we fall back
to the slow mode. This patch bypasses the resamplefd setting for
non level-sentive IRQs.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/platform.c
trace-events