Skip to contentSkip to conversation

"qemu -device ?" segfaults

Qemu-devel Gerd Hoffmann 4 participants 7 messages Feb 23, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

$subject says all, which pretty much breaks libvirt-managed qemu ...

cheers,
Gerd

#1 lore raw
Quoted 3 lines · Gerd Hoffmann

Hi,

$subject says all, which pretty much breaks libvirt-managed qemu ...

Even just "qemu" segfaults, right here:

(gdb) bt
#0 qemu_opt_get (opts=0x0, name=0x7ffff7f7478f "kernel")
at /home/kraxel/projects/qemu/qemu-option.c:545
#1 0x00007ffff7deb1b0 in main (argc=<value optimized out>, argv=<value optimized out>,
envp=<value optimized out>) at /home/kraxel/projects/qemu/vl.c:3250

cheers,
Gerd

#4 lore raw
In reply to Gerd Hoffmann
Quoted 1 line · Gerd Hoffmann

$subject says all, which pretty much breaks libvirt-managed qemu ...

Also "device_add nonexistent-device" in the monitor gives a rather unhelpful message:

Parameter 'driver' expects device type

Cheers

#5 lore raw
Quoted 7 lines · andrzej zaborowski
Quoted 1 line · Gerd Hoffmann

$subject says all, which pretty much breaks libvirt-managed qemu ...

Also "device_add nonexistent-device" in the monitor gives a rather unhelpful message:

Parameter 'driver' expects device type

"-device foo" is really shorthand for "-device driver=foo". And deep down in the bowels of qdev, where the error get reported, the value of parameter "driver" gets treated like any other parameter's value: if it's not within ACCEPTABLE-SET, complain "Parameter 'NAME' expected ACCEPTABLE-SET".

Overuse of syntactic sugar considered harmful.

#6 lore raw
In reply to Markus Armbruster
Quoted 8 lines · Markus Armbruster
Quoted 6 lines · andrzej zaborowski
Quoted 1 line · Gerd Hoffmann

$subject says all, which pretty much breaks libvirt-managed qemu ...

Also "device_add nonexistent-device" in the monitor gives a rather unhelpful message:

Quoted 7 lines
Quoted 1 line

Parameter 'driver' expects device type

"-device foo" is really shorthand for "-device driver=foo".  And deep down in the bowels of qdev, where the error get reported, the value of parameter "driver" gets treated like any other parameter's value: if it's not within ACCEPTABLE-SET, complain "Parameter 'NAME' expected ACCEPTABLE-SET".

Yeah, I looked at this code, perhaps "'INPUT' is not a valid 'ACCEPTABLE-SET'" would be more helpful. In my message I was talking about the monitor command though. Something like "you typoed in the device name" should be reported by the human readable monitor.

Cheers