summaryrefslogtreecommitdiffstats
path: root/include/hw/xen
diff options
context:
space:
mode:
authorPaul Durrant2019-04-08 17:16:16 +0200
committerAnthony PERARD2019-06-24 11:42:29 +0200
commit83361a8a1f932cfac8ae4a5b86e935ad6ab1c528 (patch)
tree47c958b26d713af8cc5d439f28b6d6c063affeaf /include/hw/xen
parentxen-bus: use a separate fd for each event channel (diff)
downloadqemu-83361a8a1f932cfac8ae4a5b86e935ad6ab1c528.tar.gz
qemu-83361a8a1f932cfac8ae4a5b86e935ad6ab1c528.tar.xz
qemu-83361a8a1f932cfac8ae4a5b86e935ad6ab1c528.zip
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>
Diffstat (limited to 'include/hw/xen')
-rw-r--r--include/hw/xen/xen-bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/xen/xen-bus.h b/include/hw/xen/xen-bus.h
index 3315f0de20..8183b98c7d 100644
--- a/include/hw/xen/xen-bus.h
+++ b/include/hw/xen/xen-bus.h
@@ -122,6 +122,7 @@ void xen_device_copy_grant_refs(XenDevice *xendev, bool to_domain,
typedef void (*XenEventHandler)(void *opaque);
XenEventChannel *xen_device_bind_event_channel(XenDevice *xendev,
+ AioContext *ctx,
unsigned int port,
XenEventHandler handler,
void *opaque, Error **errp);