xen-bus: allow AioContext to be specified for each event channel
commit83361a8a1f932cfac8ae4a5b86e935ad6ab1c528
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 8 Apr 2019 15:16:16 +0000 (8 16:16 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 24 Jun 2019 09:42:29 +0000 (24 10:42 +0100)
tree47c958b26d713af8cc5d439f28b6d6c063affeaf
parentc0b336ea19a93801ee2333be525d0473d28a10f8
xen-bus: allow AioContext to be specified for each event channel

This patch adds an AioContext parameter to xen_device_bind_event_channel()
and then uses aio_set_fd_handler() to set the callback rather than
qemu_set_fd_handler().

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20190408151617.13025-3-paul.durrant@citrix.com>
[Call aio_set_fd_handler() with is_external=true]
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
hw/block/dataplane/xen-block.c
hw/xen/xen-bus.c
include/hw/xen/xen-bus.h