From 12c0d05a9e50ee272cf3998e52545cacc8ec75d2 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Wed, 24 Feb 2021 08:55:40 +0000 Subject: ignore VFIO_IRQ_SET_DATA_NONE (#364) Signed-off-by: Thanos Makatos Reviewed-by: John Levon --- lib/irq.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') 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) { -- cgit v1.1