qemu-doc.texi: Add usb sound card info
PATCH v2 1/1 qemu-doc.texi: Add usb sound card info
Add info on usb sound card to qemu documentation.
---
Changed 'thru' to 'through'
qemu-doc.texi | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
qemu-doc.texi +4 -1
@@ -1328,7 +1328,8 @@ as necessary to connect multiple USB devices. @subsection Connecting USB devices USB devices can be connected with the @option{-usbdevice} commandline option -or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are: @table @code @item mouse
@@ -1381,6 +1382,8 @@ usage: @example qemu-system-i386 [...OPTIONS...] -usbdevice bt:hci,vlan=3 -bt device:keyboard,vlan=3 @end example +@item usb-audio +USB sound card. Can only be used if added through the command-line like this: -usb -device usb-audio @end table @node host_usb_devices
Signature · 1 line
1.7.5.4
Copying USB maintainer...
Quoted 15 lines · Programmingkid
Add info on usb sound card to qemu documentation.
Signed-off-by John Arbuckle <[email protected]>---
Changed 'thru' to 'through'qemu-doc.texi | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)qemu-doc.texi +0
-0
qemu-doc.texi as necessary to connect multiple USB devices. · line 1332
Quoted 6 lines
qemu-doc.texi +2
-1@@ -1328,7 +1328,8 @@ as necessary to connect multiple USB devices. @subsection Connecting USB devices USB devices can be connected with the @option{-usbdevice} commandline option -or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are:
I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I'd just drop this hunk for now. Suboptimal, but I can't think of a better way short of doing the rewrite. Perhaps Gerd can.
Quoted 6 lines
qemu-doc.texi +2
-0+or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are: @table @code @item mouse
qemu-doc.texi usage: · line 1389
Quoted 8 lines
qemu-doc.texi +2
-0@@ -1381,6 +1382,8 @@ usage: @example qemu-system-i386 [...OPTIONS...] -usbdevice bt:hci,vlan=3 -bt device:keyboard,vlan=3 @end example +@item usb-audio +USB sound card. Can only be used if added through the command-line like this: -usb -device usb-audio @end table @node host_usb_devices
Long line. Could perhaps be fixed on commit.
With the first hunk dropped and the line wrapped:
Quoted 21 lines · Markus Armbruster
Copying USB maintainer...
Quoted 17 lines · Programmingkid
Add info on usb sound card to qemu documentation.
Signed-off-by John Arbuckle <[email protected]>---
Changed 'thru' to 'through'qemu-doc.texi | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)qemu-doc.texi +0
-0@@ -1328,7 +1328,8 @@ as necessary to connect multiple USB devices.@subsection Connecting USB devices
Quoted 10 lines
qemu-doc.texi as necessary to connect multiple USB devices. · line 1332
Quoted 4 lines
USB devices can be connected with the @option{-usbdevice} commandline option
qemu-doc.texi +2
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably be removed from the documentation in favor for -usb -device <device name>.
A patch should be made that would allow all USB devices to be added using the usb_add monitor command.
Quoted 23 lines
I'd just drop this hunk for now. Suboptimal, but I can't think of a better way short of doing the rewrite. Perhaps Gerd can.
Quoted 13 lines
qemu-doc.texi +2
-0+or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are:@table @code
@item mouseqemu-doc.texi +0
-0@@ -1381,6 +1382,8 @@ usage:@example
qemu-system-i386 [...OPTIONS...] -usbdevice bt:hci,vlan=3 -bt device:keyboard,vlan=3 @end example
+@item usb-audio
+USB sound card. Can only be used if added through the command-line like this: -usb -device usb-audio @end tableQuoted 1 line
@node
host_usb_devicesLong line. Could perhaps be fixed on commit.
With the first hunk dropped and the line wrapped:
Reviewed-by Markus Armbruster <[email protected]>
[Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Quoted 16 lines · Programmingkid
Quoted 11 lines · Markus Armbruster
Review
Quoted 5 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +2
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably be removed from the documentation in favor for -usb -device <device name>.
Right now using "-usb -device mouse" doesn't work. Neither does "-usbdevice usb-audio". I think we can all agree that consistency among all the USB devices is a good thing. Should all USB devices be added like this: -usb -device <device name> ?
This is an experimental patch of not how QEMU currently works, but how I think it should work.
This documentation adds an "usb_remove" monitor command. This isn't available right now, but a patch could be made to change this. Any suggestions or additions are welcomed.
--- qemu-doc.texi | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-)
qemu-doc.texi +30 -4
@@ -1316,10 +1316,19 @@ monitor (@pxref{pcsys_keys}). @section USB emulation QEMU emulates a PCI UHCI USB controller. You can virtually plug -virtual USB devices or real host USB devices (experimental, works only -on Linux hosts). QEMU will automatically create and connect virtual USB hubs +virtual USB devices or real host USB devices. QEMU will automatically +create and connect virtual USB hubs as necessary to connect multiple USB devices. +@subsection USB Monitor Commands: +@table @option +@item usb_add <device> +Adds an usb device. +@item usb_remove <device> +Removes an usb device. +@item info usb +Prints info on all connected usb devices. +@end table @menu * usb_devices:: * host_usb_devices::
@@ -1327,8 +1336,19 @@ as necessary to connect multiple USB devices. @node usb_devices @subsection Connecting USB devices -USB devices can be connected with the @option{-usbdevice} commandline option -or the @code{usb_add} monitor command. Available devices are: + +To add an USB device from the command-line: +-usb -device <device name> + +To add an USB device from the monitor: +usb_add <device name> + +Examples: +@example +usb_add mouse +-usb -device mouse -device keyboard -device usb-audio +@end example +*note: the -usb option only needs to be used once. @table @code @item mouse
@@ -1381,8 +1401,14 @@ usage: @example qemu-system-i386 [...OPTIONS...] -usbdevice bt:hci,vlan=3 -bt device:keyboard,vlan=3 @end example +@item usb-audio +USB sound card. @end table +Legacy note: +USB devices use to be connected with the @option{-usbdevice} command-line option. +Not all usb devices work with this option now. + @node host_usb_devices @subsection Using host USB devices on a Linux host
Signature · 1 line
1.7.5.4
Re: [Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Copying the USB maintainer.
Quoted 20 lines · Programmingkid
Quoted 17 lines · Programmingkid
Quoted 11 lines · Markus Armbruster
Review
Quoted 5 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +2
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably
be removed from the documentation in favor for -usb -device <device name>.
Quoted 1 line
Right now using "-usb -device mouse" doesn't work.
You need to say -device usb-mouse. See docs/qdev-device-use.txt. Does it work for you when you do that?
Quoted 2 lines
Neither does
"-usbdevice usb-audio".
Yes. Legacy -usbdevice only supports the devices that predate -device.
Quoted 3 lines
I think we can all agree that consistency among all the USB devices is a good thing.
Should all USB devices be added like this: -usb -device <device name> ?
"Should" is perhaps a bit strong. While -device is the recommended way to add a USB device, -usbdevice is still a supported (if legacy) way to do it.
Of course, "supported, but legacy" interfaces such as -usbdevice may become deprecated, and then you should really move to newer interfaces, because deprecated ones may go away. Doesn't look terribly probable to me for -usbdevice, though.
Quoted 7 lines
This is an experimental patch of not how QEMU currently works, but how I think it should work.
This documentation adds an "
usb_remove" monitor command. This isn't available right now,
but a patch could be made to change this. Any suggestions or additions are welcomed.
Why do you think we need usb_remove in addition to device_del?
Quoted 11 lines
Signed-off-by John Arbuckle <[email protected]>--- qemu-doc.texi | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-)qemu-doc.texi +0
-0
qemu-doc.texi monitor (@pxref{pcsys_keys}). · line 1321
Quoted 8 lines
qemu-doc.texi +2
-2@@ -1316,10 +1316,19 @@ monitor (@pxref{pcsys_keys}). @section USB emulation QEMU emulates a PCI UHCI USB controller. You can virtually plug -virtual USB devices or real host USB devices (experimental, works only -on Linux hosts). QEMU will automatically create and connect virtual USB hubs +virtual USB devices or real host USB devices. QEMU will automatically +create and connect virtual USB hubs as necessary to connect multiple USB devices.
This part drops the "experimental, works only on Linux" parenthesis. Assuming that's appropriate: separate patch, please. Okay to do it together with other corrections and improvements to USB documentation.
qemu-doc.texi monitor (@pxref{pcsys_keys}). · line 1334
Quoted 13 lines
qemu-doc.texi +9
-0+@subsection USB Monitor Commands: +@table @option +@item usb_add <device> +Adds an usb device. +@item usb_remove <device> +Removes an usb device. +@item info usb +Prints info on all connected usb devices. +@end table @menu * usb_devices:: * host_usb_devices::
Please limit a patch adding a new feature (here: usb_remove) to just adding the new feature. If you want to change the structure of the manual (here: mention usb monitor commands in yet another place), do it in a separate patch.
Quoted 9 lines
qemu-doc.texi +3
-2@@ -1327,8 +1336,19 @@ as necessary to connect multiple USB devices. @node usb_devices @subsection Connecting USB devices -USB devices can be connected with the @option{-usbdevice} commandline option -or the @code{usb_add} monitor command. Available devices are: + +To add an USB device from the command-line: +-usb -device <device name>
qemu-doc.texi as necessary to connect multiple USB devices. · line 1351
Quoted 10 lines
qemu-doc.texi +10
-0+ +To add an USB device from the monitor: +usb_add <device name> + +Examples: +@example +usb_add mouse +-usb -device mouse -device keyboard -device usb-audio +@end example +*note: the -usb option only needs to be used once.
Likewise: do not mix up your new feature with proposed improvements of documention for existing stuff.
Quoted 11 lines
qemu-doc.texi +0
-0@table @code @item mouse@@ -1381,8 +1401,14 @@ usage: @example qemu-system-i386 [...OPTIONS...] -usbdevice bt:hci,vlan=3 -btdevice:keyboard,vlan=3
@end example
+@item usb-audio
+USB sound card.
@end table
Here, you add documentation on usb-audio in addition to adding your new command. I'm not even reviewing this in its current state, sorry.
Quoted 8 lines
qemu-doc.texi +2
-0+Legacy note: +USB devices use to be connected with the @option{-usbdevice}command-line option.
qemu-doc.texi +2
-0+Not all usb devices work with this option now. + @node host_usb_devices @subsection Using host USB devices on a Linux host
Re: [Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Quoted 24 lines · Markus Armbruster
Copying the USB maintainer.
Quoted 20 lines · Programmingkid
Quoted 17 lines · Programmingkid
Quoted 11 lines · Markus Armbruster
Review
Quoted 5 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +2
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices may only work if +added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably
be removed from the documentation in favor for -usb -device <device name>.
Quoted 4 lines
Quoted 1 line
Right now using "-usb -device mouse" doesn't work.
You need to say -device usb-mouse. See
docs/qdev-device-use.txt. Does it work for you when you do that?
It does. Thank you for this information.
Quoted 22 lines
Quoted 3 lines
Neither does
"-usbdevice usb-audio".Yes. Legacy -usbdevice only supports the devices that predate -device.
Quoted 3 lines
I think we can all agree that consistency among all the USB devices is a good thing.
Should all USB devices be added like this: -usb -device <device name> ?"Should" is perhaps a bit strong. While -device is the recommended way to add a USB device, -usbdevice is still a supported (if legacy) way to do it.
Of course, "supported, but legacy" interfaces such as -usbdevice may become deprecated, and then you should really move to newer interfaces, because deprecated ones may go away. Doesn't look terribly probable to me for -usbdevice, though.
Quoted 3 lines
This is an experimental patch of not how QEMU currently works, but how I think it should work.
Quoted 6 lines
Quoted 4 lines
This documentation adds an "
usb_remove" monitor command. This isn't available right now,
but a patch could be made to change this. Any suggestions or additions are welcomed.Why do you think we need
usb_removein addition todevice_del?
Ok. usb_remove isn't needed. Why is it that "device_add usb-kbd" works, but "device_del usb-kbd" doesn't work? I am given this error message: "Device 'usb-kbd' not found".
Re: [Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Quoted 28 lines · Programmingkid
Quoted 26 lines · Markus Armbruster
Copying the USB maintainer.
Quoted 22 lines · Programmingkid
Quoted 19 lines · Programmingkid
Quoted 13 lines · Markus Armbruster
Quoted 7 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +1
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices mayonly work if
+added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably
be removed from the documentation in favor for -usb -device <device name>.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Right now using "-usb -device mouse" doesn't work.
You need to say -device usb-mouse. See
docs/qdev-device-use.txt. Does it work for you when you do that?It does. Thank you for this information.
My pleasure.
Quoted 26 lines
Quoted 26 lines
Quoted 2 lines
Neither does
"-usbdevice usb-audio".Yes. Legacy -usbdevice only supports the devices that predate -device.
Quoted 3 lines
I think we can all agree that consistency among all the USB devices is a good thing.
Should all USB devices be added like this: -usb -device <device name> ?"Should" is perhaps a bit strong. While -device is the recommended way to add a USB device, -usbdevice is still a supported (if legacy) way to do it.
Of course, "supported, but legacy" interfaces such as -usbdevice may become deprecated, and then you should really move to newer interfaces, because deprecated ones may go away. Doesn't look terribly probable to me for -usbdevice, though.
Quoted 7 lines
This is an experimental patch of not how QEMU currently works, but how I think it should work.
This documentation adds an "
usb_remove" monitor command. This isn't available right now,
but a patch could be made to change this. Any suggestions or additions are welcomed.
Quoted 5 lines
Quoted 1 line
Why do you think we need
usb_removein addition todevice_del?Ok.
usb_removeisn't needed. Why is it that "device_addusb-kbd" works, but "device_delusb-kbd" doesn't work? I am given this error message:
"Device 'usb-kbd' not found".
device_del's argument isn't a driver, it's a device ID. Try this:
(qemu) device_add usb-mouse,id=mouse0
(qemu) info usb
Device 0.0, Port 1, Speed 12 Mb/s, Product QEMU USB Mouse
(qemu) device_del mouse0
(qemu) info usb
(qemu)
Re: [Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Quoted 71 lines · Markus Armbruster
Quoted 28 lines · Programmingkid
Quoted 26 lines · Markus Armbruster
Copying the USB maintainer.
Quoted 22 lines · Programmingkid
Quoted 19 lines · Programmingkid
Quoted 13 lines · Markus Armbruster
Quoted 7 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +1
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices mayonly work if
+added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably
be removed from the documentation in favor for -usb -device <device name>.Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Right now using "-usb -device mouse" doesn't work.
You need to say -device usb-mouse. See
docs/qdev-device-use.txt. Does it work for you when you do that?It does. Thank you for this information.
My pleasure.
Quoted 26 lines
Quoted 26 lines
Quoted 2 lines
Neither does
"-usbdevice usb-audio".Yes. Legacy -usbdevice only supports the devices that predate -device.
Quoted 3 lines
I think we can all agree that consistency among all the USB devices is a good thing.
Should all USB devices be added like this: -usb -device <device name> ?"Should" is perhaps a bit strong. While -device is the recommended way to add a USB device, -usbdevice is still a supported (if legacy) way to do it.
Of course, "supported, but legacy" interfaces such as -usbdevice may become deprecated, and then you should really move to newer interfaces, because deprecated ones may go away. Doesn't look terribly probable to me for -usbdevice, though.
Quoted 7 lines
This is an experimental patch of not how QEMU currently works, but how I think it should work.
This documentation adds an "
usb_remove" monitor command. This isn't available right now,
but a patch could be made to change this. Any suggestions or additions are welcomed.Quoted 5 lines
Quoted 1 line
Why do you think we need
usb_removein addition todevice_del?Ok.
usb_removeisn't needed. Why is it that "device_addusb-kbd" works, but "device_delusb-kbd" doesn't work? I am given this error message:
"Device 'usb-kbd' not found".
Quoted 8 lines
device_del's argument isn't a driver, it's a device ID. Try this:
(qemu)
device_addusb-mouse,id=mouse0
(qemu) info usb
Device 0.0, Port 1, Speed 12 Mb/s, Product QEMU USB Mouse
(qemu)device_delmouse0
(qemu) info usb
(qemu)
The problem is with "info usb". It doesn't print the id you gave it. I will make a patch that will print the id's.
Re: [Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Quoted 83 lines · Programmingkid
Quoted 72 lines · Markus Armbruster
Quoted 29 lines · Programmingkid
Quoted 27 lines · Markus Armbruster
Copying the USB maintainer.
Quoted 23 lines · Programmingkid
Quoted 20 lines · Programmingkid
Quoted 13 lines · Markus Armbruster
Quoted 7 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +1
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices mayonly work if
+added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably
be removed from the documentation in favor for -usb -device <device name>.Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Right now using "-usb -device mouse" doesn't work.
You need to say -device usb-mouse. See
docs/qdev-device-use.txt. Does it work for you when you do that?It does. Thank you for this information.
My pleasure.
Quoted 26 lines
Quoted 26 lines
Quoted 2 lines
Neither does
"-usbdevice usb-audio".Yes. Legacy -usbdevice only supports the devices that predate -device.
Quoted 3 lines
I think we can all agree that consistency among all the USB devices is a good thing.
Should all USB devices be added like this: -usb -device <device name> ?"Should" is perhaps a bit strong. While -device is the recommended way to add a USB device, -usbdevice is still a supported (if legacy) way to do it.
Of course, "supported, but legacy" interfaces such as -usbdevice may become deprecated, and then you should really move to newer interfaces, because deprecated ones may go away. Doesn't look terribly probable to me for -usbdevice, though.
Quoted 7 lines
This is an experimental patch of not how QEMU currently works, but how I think it should work.
This documentation adds an "
usb_remove" monitor command. This isn't available right now,
but a patch could be made to change this. Any suggestions or additions are welcomed.Quoted 5 lines
Quoted 1 line
Why do you think we need
usb_removein addition todevice_del?Ok.
usb_removeisn't needed. Why is it that "device_addusb-kbd" works, but "device_delusb-kbd" doesn't work? I am given this error message:
"Device 'usb-kbd' not found".Quoted 8 lines
device_del's argument isn't a driver, it's a device ID. Try this:
(qemu)
device_addusb-mouse,id=mouse0
(qemu) info usb
Device 0.0, Port 1, Speed 12 Mb/s, Product QEMU USB Mouse
(qemu)device_delmouse0
(qemu) info usb
(qemu)
Quoted 3 lines
The problem is with "info usb". It doesn't print the id you gave it. I will make a patch that
will print the id's.
Yes, "info usb" doesn't show the qdev ID. Neither does "info pci". "info qom" and "info qtree" do.
Re: [Qemu-devel] qemu-doc.texi: Improve USB documentation... and maybe even QEMU also
Quoted 85 lines · Markus Armbruster
Quoted 83 lines · Programmingkid
Quoted 80 lines · Markus Armbruster
Quoted 29 lines · Programmingkid
Quoted 27 lines · Markus Armbruster
Copying the USB maintainer.
Quoted 23 lines · Programmingkid
Quoted 20 lines · Programmingkid
Quoted 13 lines · Markus Armbruster
Quoted 7 lines
USB devices can be connected with the @option{-usbdevice} commandline option
(quoted diff) +1
-1-or the @code{usb_add} monitor command. Available devices are: +or the @code{usb_add} monitor command. Note: some devices mayonly work if
+added like this: -usb -device <usb device>. Available devices are:I'm afraid "may only work" is a bit misleading. All of them work with -device. Old ones are also supported by -usbdevice for backward compatibility. The whole section should be rewritten to point to -device instead of legacy -usbdevice, but that's no reason to hold up your patch.
I did not know -usbdevice was considered legacy. If that is the case, then it should probably
be removed from the documentation in favor for -usb -device <device name>.Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Right now using "-usb -device mouse" doesn't work.
You need to say -device usb-mouse. See
docs/qdev-device-use.txt. Does it work for you when you do that?It does. Thank you for this information.
My pleasure.
Quoted 26 lines
Quoted 26 lines
Quoted 2 lines
Neither does
"-usbdevice usb-audio".Yes. Legacy -usbdevice only supports the devices that predate -device.
Quoted 3 lines
I think we can all agree that consistency among all the USB devices is a good thing.
Should all USB devices be added like this: -usb -device <device name> ?"Should" is perhaps a bit strong. While -device is the recommended way to add a USB device, -usbdevice is still a supported (if legacy) way to do it.
Of course, "supported, but legacy" interfaces such as -usbdevice may become deprecated, and then you should really move to newer interfaces, because deprecated ones may go away. Doesn't look terribly probable to me for -usbdevice, though.
Quoted 7 lines
This is an experimental patch of not how QEMU currently works, but how I think it should work.
This documentation adds an "
usb_remove" monitor command. This isn't available right now,
but a patch could be made to change this. Any suggestions or additions are welcomed.Quoted 5 lines
Quoted 1 line
Why do you think we need
usb_removein addition todevice_del?Ok.
usb_removeisn't needed. Why is it that "device_addusb-kbd" works, but "device_delusb-kbd" doesn't work? I am given this error message:
"Device 'usb-kbd' not found".device_del's argument isn't a driver, it's a device ID. Try this:
(qemu)
device_addusb-mouse,id=mouse0
(qemu) info usb
Device 0.0, Port 1, Speed 12 Mb/s, Product QEMU USB Mouse
(qemu)device_delmouse0
(qemu) info usb
(qemu)
Quoted 6 lines
Quoted 3 lines
The problem is with "info usb". It doesn't print the id you gave it. I will make a patch that
will print the id's.Yes, "info usb" doesn't show the qdev ID. Neither does "info pci". "info qom" and "info qtree" do.
It sounds like these info's could use some improving...