qemu-doc: Update to use the new way of attaching USB devices
PATCH v4 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.
---
v4:
- usb-braille needs a chardev parameter, too, as noticed by Paolo
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 | 93 +++++++++++++++++++++++++++--------------------- 2 files changed, 54 insertions(+), 45 deletions(-)
docs/qdev-device-use.txt +2 -4
@@ -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 +52 -41
133 lines not on this page · raw message
Signature · 1 line
1.8.3.1
Quoted 7 lines · Thomas Huth
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.
added to usb queue.
thanks,
Gerd