aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-11-03 18:10:17 +0100
committermalc <av1474@comtv.ru>2012-11-06 04:37:57 +0400
commit2592c59a66d456fe98fe96cb5787b356c40ee66f (patch)
tree92bbc2b291f0155335d21f95dc475abc2c0332fe /qemu-io.c
parentc878da3b27ceeed953c9f9a1eb002d59e9dcb4c6 (diff)
tools: initialize main loop before block layer
Tools were broken because they initialized the block layer while qemu_aio_context was still NULL. Reported-by: malc <av1474@comtv.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/qemu-io.c b/qemu-io.c
index d0f4fb70c7..1ad7d3adb9 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -1892,9 +1892,8 @@ int main(int argc, char **argv)
exit(1);
}
- bdrv_init();
-
qemu_init_main_loop();
+ bdrv_init();
/* initialize commands */
quit_init();