Skip to contentSkip to conversation

qemu-doc: Update to use the new way of attaching USB devices

PATCH Superseded Thomas Huth 2 participants 3 messages May 8, 2017

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 qemu-doc: Update to use the new way of attaching USB devices

The preferred way of adding USB devices is via "-device" and "device_add" nowadays, so let's start to get rid of "-usbdevice" and "usb_add" in the documentation. While we're at it, also add the new USB devices there which have been added to QEMU during the last years, and get rid of the old "vendorid" and "productid" parameters of "-usbdevice serial" which have been removed in QEMU version 0.14.0 already.

---
v3:
- Get rid of vendorid and productid completely
- Describe x-root option
- Fixed some more cosmetic nits mentioned by Markus

v2:
- Addressed review feedback from Markus
- Added the new USB devices that are only available via "-device"
- Update qdev-device-use.txt about "vendorid" and "productid"

 docs/qdev-device-use.txt |  6 ++--
 qemu-doc.texi            | 91 +++++++++++++++++++++++++++---------------------
 2 files changed, 53 insertions(+), 44 deletions(-)
docs/qdev-device-use.txt +2 -4
index b059405..4274fe9 100644
@@ -182,15 +182,13 @@ The appropriate DEVNAME depends on the machine type.  For type "pc":
 
   This lets you control I/O ports and IRQs.
 
-* -usbdevice serial:vendorid=VID,productid=PRID becomes
-  -device usb-serial,vendorid=VID,productid=PRID
+* -usbdevice serial::chardev becomes -device usb-serial,chardev=dev.
 
 * -usbdevice braille doesn't support LEGACY-CHARDEV syntax.  It always
   uses "braille".  With -device, this useful default is gone, so you
   have to use something like
 
-  -device usb-braille,chardev=braille,vendorid=VID,productid=PRID
-  -chardev braille,id=braille
+  -device usb-braille,chardev=braille -chardev braille,id=braille
 
 * -virtioconsole becomes
   -device virtio-serial-pci,class=C,vectors=V,ioeventfd=IOEVENTFD,max_ports=N
qemu-doc.texi +51 -40

132 lines not on this page · raw message

Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 1 line · Thomas Huth

+@item usb-braille

I think this should be

@item usb-braille,chardev=@var{id}

Quoted 2 lines

Braille device. This will use BrlAPI to display the braille output on a real or fake device.

#2 lore raw
Quoted 8 lines · Paolo Bonzini
Quoted 1 line · Thomas Huth

+@item usb-braille

I think this should be

@item usb-braille,chardev=@var{id}

Oh, you're right, the chardev parameter is required here. I did not notice it since the original documentation did not talk about parameters here as well... I'll send a v4...

Thomas