From a57d114389bdf8ce493456f85f2ec2229f7d0c00 Mon Sep 17 00:00:00 2001 From: Zhi Yong Wu Date: Sun, 19 Feb 2012 22:24:59 +0800 Subject: qemu-io: fix segment fault when the image format is qed [root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed cluster size: 64 KiB vm state offset: 0.000000 bytes Segmentation fault (core dumped) This reason is same as the former patch Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- qemu-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-io.c b/qemu-io.c index 0249be4e7..31895305f 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1856,6 +1856,8 @@ int main(int argc, char **argv) bdrv_init(); + qemu_init_main_loop(); + /* initialize commands */ quit_init(); help_init(); -- cgit v1.2.3