summary refs log tree commit diff stats
path: root/contrib/vhost-user-input/main.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2019-06-13 09:57:37 -0600
committerAlex Williamson <alex.williamson@redhat.com>2019-06-13 09:57:37 -0600
commit201a733145751aa691e7e3b9c0f263f0c92db0c5 (patch)
tree647396feec60c11680bb64ae3eaff658469815ac /contrib/vhost-user-input/main.c
parentc60807dea5930a402b77172da17e79b26f1af48b (diff)
downloadfocaccia-qemu-201a733145751aa691e7e3b9c0f263f0c92db0c5.tar.gz
focaccia-qemu-201a733145751aa691e7e3b9c0f263f0c92db0c5.zip
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>
Diffstat (limited to 'contrib/vhost-user-input/main.c')
0 files changed, 0 insertions, 0 deletions