Skip to contentSkip to conversation

fsdev - broken qemu-system-?

Qemu-devel Edgar E. Iglesias 2 participants 3 messages Jun 10, 2011

lore
Share & tools
lore
#0 lore raw

At least CRIS, Microblaze and lm32 are broken on latest git. Things fail with the following message:
qemu-system-cris: there is no option group "fsdev"

Under GDB I see a segfault...

% gdb --args ~/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris -M axis-dev88 -kernel kimage -serial stdio GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/edgar/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris...done.
(gdb) run
Starting program: /home/edgar/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris -M axis-dev88 -kernel kimage -serial stdio [Thread debugging using libthread_db enabled]
qemu-system-cris: there is no option group "fsdev"

Program received signal SIGSEGV, Segmentation fault. qemu_opts_foreach (list=0x0, func=0x4fd210 <fsdev_init_func>, opaque=0x0,

    abort_on_failure=1) at /home/edgar/src/c/qemu/git/qemu/qemu-option.c:969
969         QTAILQ_FOREACH(opts, &list->head, next) {
(gdb) bt
#0  qemu_opts_foreach (list=0x0, func=0x4fd210 <fsdev_init_func>, opaque=0x0, 
    abort_on_failure=1) at /home/edgar/src/c/qemu/git/qemu/qemu-option.c:969

#1 0x00000000004ff05d in main (argc=7, argv=0x7fffffffdc28,
envp=<value optimized out>) at /home/edgar/src/c/qemu/git/qemu/vl.c:3015
(gdb) q
A debugging session is active.

Inferior 1 [process 1473] will be killed.

Quit anyway? (y or n) y

#1 lore raw
Quoted 29 lines · Edgar E. Iglesias

At least CRIS, Microblaze and lm32 are broken on latest git. Things fail with the following message:
qemu-system-cris: there is no option group "fsdev"

Under GDB I see a segfault...

% gdb --args ~/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris -M axis-dev88 -kernel kimage -serial stdio GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/edgar/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris...done.
(gdb) run
Starting program: /home/edgar/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris -M axis-dev88 -kernel kimage -serial stdio [Thread debugging using libthread_db enabled]
qemu-system-cris: there is no option group "fsdev"

Program received signal SIGSEGV, Segmentation fault. qemu_opts_foreach (list=0x0, func=0x4fd210 <fsdev_init_func>, opaque=0x0,

    abort_on_failure=1) at /home/edgar/src/c/qemu/git/qemu/qemu-option.c:969
969         QTAILQ_FOREACH(opts, &list->head, next) {
(gdb) bt
#0  qemu_opts_foreach (list=0x0, func=0x4fd210 <fsdev_init_func>, opaque=0x0, 
    abort_on_failure=1) at /home/edgar/src/c/qemu/git/qemu/qemu-option.c:969
Quoted 7 lines

#1 0x00000000004ff05d in main (argc=7, argv=0x7fffffffdc28,
envp=<value optimized out>) at /home/edgar/src/c/qemu/git/qemu/vl.c:3015
(gdb) q
A debugging session is active.

Inferior 1 [process 1473] will be killed.

Can you try this patch

fsdev/qemu-fsdev-dummy.c +8 -0
index 619e163..4e700dd 100644
@@ -13,8 +13,16 @@
 #include <stdio.h>
 #include <string.h>
 #include "qemu-fsdev.h"
+#include "qemu-config.h"
 
 int qemu_fsdev_add(QemuOpts *opts)
 {
     return 0;
 }
+
+static void fsdev_register_config(void)
+{
+    qemu_add_opts(&qemu_fsdev_opts);
+    qemu_add_opts(&qemu_virtfs_opts);
+}
+machine_init(fsdev_register_config);
#2 lore raw
Quoted 8 lines · Aneesh Kumar K.V
Quoted 7 lines · Edgar E. Iglesias

At least CRIS, Microblaze and lm32 are broken on latest git. Things fail with the following message:
qemu-system-cris: there is no option group "fsdev"

Under GDB I see a segfault...

% gdb --args ~/src/c/qemu/git/build-qemu/cris-softmmu/qemu-system-cris -M axis-dev88 -kernel kimage -serial stdio

....

Quoted 8 lines
Quoted 6 lines

envp=<value optimized out>) at /home/edgar/src/c/qemu/git/qemu/vl.c:3015
(gdb) q
A debugging session is active.

Inferior 1 [process 1473] will be killed.

Can you try this patch

It works, thanks!

Cheers

Quoted 22 lines
fsdev/qemu-fsdev-dummy.c +8 -0
index 619e163..4e700dd 100644
@@ -13,8 +13,16 @@
 #include <stdio.h>
 #include <string.h>
 #include "qemu-fsdev.h"
+#include "qemu-config.h"
 
 int qemu_fsdev_add(QemuOpts *opts)
 {
     return 0;
 }
+
+static void fsdev_register_config(void)
+{
+    qemu_add_opts(&qemu_fsdev_opts);
+    qemu_add_opts(&qemu_virtfs_opts);
+}
+machine_init(fsdev_register_config);