summaryrefslogtreecommitdiff
path: root/docs/qdev-device-use.txt
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-05-08 17:13:49 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-05-12 12:26:40 +0200
commita92ff8c123f45b3eb01a54f61d7be088e345612a (patch)
tree7962c089556c8ee59b188586d7889c0e94bcb9aa /docs/qdev-device-use.txt
parent76d20ea0f1b26ebd5da2f5fb2fdf3250cde887bb (diff)
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. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-id: 1494256429-31720-1-git-send-email-thuth@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'docs/qdev-device-use.txt')
-rw-r--r--docs/qdev-device-use.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt
index b059405e0e..4274fe9f25 100644
--- a/docs/qdev-device-use.txt
+++ b/docs/qdev-device-use.txt
@@ -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