]> Git Repo - qemu.git/blobdiff - iohandler.c
s390x/pci: dynamically allocate iommu
[qemu.git] / iohandler.c
index 3f23433b5a901efc26afa85d2e877dbd169e4215..eb625d93dd99fe86c9555b1b78f81b38f0e9c4b0 100644 (file)
@@ -44,6 +44,12 @@ static void iohandler_init(void)
     }
 }
 
+AioContext *iohandler_get_aio_context(void)
+{
+    iohandler_init();
+    return iohandler_ctx;
+}
+
 GSource *iohandler_get_g_source(void)
 {
     iohandler_init();
@@ -57,7 +63,7 @@ void qemu_set_fd_handler(int fd,
 {
     iohandler_init();
     aio_set_fd_handler(iohandler_ctx, fd, false,
-                       fd_read, fd_write, opaque);
+                       fd_read, fd_write, NULL, opaque);
 }
 
 /* reaping of zombies.  right now we're not passing the status to
This page took 0.027358 seconds and 4 git commands to generate.