]> git.proxmox.com Git - mirror_qemu.git/blobdiff - main-loop.c
ivshmem: Fix 64 bit memory bar configuration
[mirror_qemu.git] / main-loop.c
index 89a699419f4da2020b5f114af1753bd9003e1598..6a7f8d30bd2a87380b928bc084e523bd18d4fb35 100644 (file)
@@ -154,11 +154,11 @@ int qemu_init_main_loop(Error **errp)
     }
 
     qemu_aio_context = aio_context_new(&local_error);
-    qemu_notify_bh = qemu_bh_new(notify_event_cb, NULL);
     if (!qemu_aio_context) {
         error_propagate(errp, local_error);
         return -EMFILE;
     }
+    qemu_notify_bh = qemu_bh_new(notify_event_cb, NULL);
     gpollfds = g_array_new(FALSE, FALSE, sizeof(GPollFD));
     src = aio_get_g_source(qemu_aio_context);
     g_source_attach(src, NULL);