From 83361a8a1f932cfac8ae4a5b86e935ad6ab1c528 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Mon, 8 Apr 2019 16:16:16 +0100 Subject: 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 Reviewed-by: Anthony PERARD Message-Id: <20190408151617.13025-3-paul.durrant@citrix.com> [Call aio_set_fd_handler() with is_external=true] Signed-off-by: Anthony PERARD --- include/hw/xen/xen-bus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/hw/xen/xen-bus.h b/include/hw/xen/xen-bus.h index 3315f0d..8183b98 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); -- cgit v1.1