Eric Auger 201a733145 vfio/common: Introduce vfio_set_irq_signaling helper
The code used to assign an interrupt index/subindex to an
eventfd is duplicated many times. Let's introduce an helper that
allows to set/unset the signaling for an ACTION_TRIGGER,
ACTION_MASK or ACTION_UNMASK action.

In the error message, we now use errno in case of any
VFIO_DEVICE_SET_IRQS ioctl failure.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2019-06-13 09:57:37 -06:00
..
2016-10-04 13:28:07 +01:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:20 +02:00
2019-05-13 08:58:55 +02:00
2017-01-27 18:07:59 +01:00
2019-06-13 09:34:38 +02:00
2019-06-12 13:20:20 +02:00
2019-02-22 09:42:13 +00:00
2016-05-18 15:04:27 +03:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:20 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 14:43:47 +01:00
2019-06-12 14:43:47 +01:00
2019-05-17 08:16:02 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-13 09:34:50 +02:00
2019-06-12 13:20:20 +02:00
2017-01-27 18:07:59 +01:00
2019-02-05 16:50:16 +01:00
2018-12-11 15:45:22 -02:00
2019-06-12 13:20:21 +02:00
2013-04-08 18:13:10 +02:00