aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-02-24 08:55:40 +0000
committerGitHub <noreply@github.com>2021-02-24 08:55:40 +0000
commit12c0d05a9e50ee272cf3998e52545cacc8ec75d2 (patch)
tree30a68ed5e41c999d16223743391eeccb409951d8 /lib
parent1194d54124f0bb5b8b53bbd7700f1ac8574478ee (diff)
downloadlibvfio-user-12c0d05a9e50ee272cf3998e52545cacc8ec75d2.zip
libvfio-user-12c0d05a9e50ee272cf3998e52545cacc8ec75d2.tar.gz
libvfio-user-12c0d05a9e50ee272cf3998e52545cacc8ec75d2.tar.bz2
ignore VFIO_IRQ_SET_DATA_NONE (#364)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/irq.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/irq.c b/lib/irq.c
index a1d855f..5a7a2a8 100644
--- a/lib/irq.c
+++ b/lib/irq.c
@@ -355,6 +355,16 @@ handle_device_set_irqs(vfu_ctx_t *vfu_ctx, uint32_t size,
}
switch (irq_set->flags & VFIO_IRQ_SET_DATA_TYPE_MASK) {
+ case VFIO_IRQ_SET_DATA_NONE:
+ /*
+ * FIXME The way it's handled in this case is a hack, it should be
+ * properly fixed, see issue #359 for more details.
+ */
+ vfu_log(vfu_ctx, LOG_NOTICE,
+ "ignore IRQ DATA_NONE, action=%#x, index=%ld, start=%ld, count=%ld",
+ irq_set->flags & VFIO_IRQ_SET_ACTION_TYPE_MASK,
+ irq_set->index, irq_set->start, irq_set->count);
+ return 0;
case VFIO_IRQ_SET_DATA_EVENTFD:
data = fds;
if (nr_fds != irq_set->count) {