* [Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed
@ 2012-02-19 14:24 zwu.kernel
2012-02-26 14:58 ` Stefan Hajnoczi
2012-02-29 15:06 ` Kevin Wolf
0 siblings, 2 replies; 3+ messages in thread
From: zwu.kernel @ 2012-02-19 14:24 UTC (permalink / raw)
To: qemu-devel; +Cc: Zhi Yong Wu, stefanha
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
[root@f15 qemu]# qemu-img info /home/zwu/work/misc/rh6.img
image: /home/zwu/work/misc/rh6.img
file format: qed
virtual size: 4.0G (4294967296 bytes)
disk size: 1.2G
cluster_size: 65536
Segmentation fault (core dumped)
Today when i were fixing another issue, i found this issue; After simple investigation, i found that the required clock vm_clock is not created for qemu tool.
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
qemu-img.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index c4bcf41..8df3564 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -1655,6 +1655,8 @@ int main(int argc, char **argv)
cmdname = argv[1];
argc--; argv++;
+ qemu_init_main_loop();
+
/* find the command */
for(cmd = img_cmds; cmd->name != NULL; cmd++) {
if (!strcmp(cmdname, cmd->name)) {
--
1.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed
2012-02-19 14:24 [Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed zwu.kernel
@ 2012-02-26 14:58 ` Stefan Hajnoczi
2012-02-29 15:06 ` Kevin Wolf
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-02-26 14:58 UTC (permalink / raw)
To: zwu.kernel; +Cc: Zhi Yong Wu, qemu-devel, stefanha
On Sun, Feb 19, 2012 at 2:24 PM, <zwu.kernel@gmail.com> wrote:
> From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
>
> [root@f15 qemu]# qemu-img info /home/zwu/work/misc/rh6.img
> image: /home/zwu/work/misc/rh6.img
> file format: qed
> virtual size: 4.0G (4294967296 bytes)
> disk size: 1.2G
> cluster_size: 65536
> Segmentation fault (core dumped)
>
> Today when i were fixing another issue, i found this issue; After simple investigation, i found that the required clock vm_clock is not created for qemu tool.
>
> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
> ---
> qemu-img.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
Please also see the "qed: replace vm_clock with rt_clock for qemu-tool
compatibility" patch which I just sent. Using vm_clock is not
possible in qemu-tool and leads to abort(3) when running qemu-io write
commands.
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed
2012-02-19 14:24 [Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed zwu.kernel
2012-02-26 14:58 ` Stefan Hajnoczi
@ 2012-02-29 15:06 ` Kevin Wolf
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2012-02-29 15:06 UTC (permalink / raw)
To: zwu.kernel; +Cc: Zhi Yong Wu, qemu-devel, stefanha
Am 19.02.2012 15:24, schrieb zwu.kernel@gmail.com:
> From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
>
> [root@f15 qemu]# qemu-img info /home/zwu/work/misc/rh6.img
> image: /home/zwu/work/misc/rh6.img
> file format: qed
> virtual size: 4.0G (4294967296 bytes)
> disk size: 1.2G
> cluster_size: 65536
> Segmentation fault (core dumped)
>
> Today when i were fixing another issue, i found this issue; After simple investigation, i found that the required clock vm_clock is not created for qemu tool.
>
> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Thanks, applied both to the block branch.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-29 15:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-19 14:24 [Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed zwu.kernel
2012-02-26 14:58 ` Stefan Hajnoczi
2012-02-29 15:06 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).