qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Unable to parse -device drivers containing commas?


From: Mark Cave-Ayland
Subject: [Qemu-devel] Unable to parse -device drivers containing commas?
Date: Thu, 30 May 2013 11:00:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

Hi all,

I found that the QEMU -device command line parser doesn't seem to like driver names containing a comma such as "SUNW,tcx" for the video driver on qemu-system-sparc:

$ ./qemu-system-sparc -device SUNW,tcx,help
qemu-system-sparc: -device SUNW,tcx,help: Parameter 'driver' expects device type
$ ./qemu-system-sparc -device 'SUNW,tcx',help
qemu-system-sparc: -device SUNW,tcx,help: Parameter 'driver' expects device type
$ ./qemu-system-sparc -device "SUNW,tcx",help
qemu-system-sparc: -device SUNW,tcx,help: Parameter 'driver' expects device type

If I try temporarily removing the comma from the TypeInfo name field in hw/display/tcx.c then all is fine:

$ ./qemu-system-sparc -device 'SUNWtcx',help
SUNWtcx.vram_size=hex32
SUNWtcx.width=uint16
SUNWtcx.height=uint16
SUNWtcx.depth=uint16
$ ./qemu-system-sparc -device SUNWtcx,help
SUNWtcx.vram_size=hex32
SUNWtcx.width=uint16
SUNWtcx.height=uint16
SUNWtcx.depth=uint16

Note that there are a couple of other devices in the SPARC32 device tree with this problem, since the general device naming convention on SPARC is in the form <manufacturer>,<device>. Is there a way of escaping the commas on the command line so that it is possible to list properties for drivers named in this way?


Many thanks,

Mark.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]