commit | 2592c59a66d456fe98fe96cb5787b356c40ee66f | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Sat Nov 03 18:10:17 2012 +0100 |
committer | malc <av1474@comtv.ru> | Tue Nov 06 04:37:57 2012 +0400 |
tree | 92bbc2b291f0155335d21f95dc475abc2c0332fe | |
parent | c878da3b27ceeed953c9f9a1eb002d59e9dcb4c6 [diff] [blame] |
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>
diff --git a/qemu-io.c b/qemu-io.c index d0f4fb7..1ad7d3a 100644 --- a/qemu-io.c +++ b/qemu-io.c
@@ -1892,9 +1892,8 @@ exit(1); } - bdrv_init(); - qemu_init_main_loop(); + bdrv_init(); /* initialize commands */ quit_init();