usb: reword -usb command-line option and mention xHCI
PATCH 1/1 usb: reword -usb command-line option and mention xHCI
The -usb section of the man page is not very clear on what exactly -usb does and fails to mention xHCI as a modern alternative (-device nec-usb-xhci).
--- qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
qemu-options.hx +5 -2
@@ -1436,12 +1436,15 @@ STEXI ETEXI DEF("usb", 0, QEMU_OPTION_usb, - "-usb enable the USB driver (if it is not used by default yet)\n", + "-usb enable on-board USB host controller (if not enabled by default)\n", QEMU_ARCH_ALL) STEXI @item -usb @findex -usb -Enable the USB driver (if it is not used by default yet). +Enable USB emulation on machine types with an on-board USB host controller (if +not enabled by default). Note that on-board USB host controllers may not +support USB 3.0. In this case -device nec-usb-xhci can be used instead on +machines with PCI. ETEXI DEF("usbdevice", HAS_ARG, QEMU_OPTION_usbdevice,
Signature · 1 line
2.21.0
Quoted 17 lines · Stefan Hajnoczi
The -usb section of the man page is not very clear on what exactly -usb does and fails to mention xHCI as a modern alternative (-device nec-usb-xhci).
Signed-off-by Stefan Hajnoczi <[email protected]>--- qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)qemu-options.hx +0
-0@@ -1436,12 +1436,15 @@ STEXI ETEXI DEF("usb", 0, QEMU_OPTION_usb,
qemu-options.hx STEXI · line 1446
Quoted 10 lines
qemu-options.hx +4
-2- "-usb enable the USB driver (if it is not used by default yet)\n", + "-usb enable on-board USB host controller (if not enabled by default)\n", QEMU_ARCH_ALL) STEXI @item -usb @findex -usb -Enable the USB driver (if it is not used by default yet). +Enable USB emulation on machine types with an on-board USB host controller (if +not enabled by default). Note that on-board USB host controllers may not +support USB 3.0. In this case -device nec-usb-xhci can be used instead on
Should we maybe rather recommend qemu-xhci instead? And please put the @option{} around the "-device *-xhci" here.
With @option:
Quoted 3 lines · * Stefan Hajnoczi ([email protected]) wrote:
The -usb section of the man page is not very clear on what exactly -usb does and fails to mention xHCI as a modern alternative (-device nec-usb-xhci).
Isn't 'qemu-xhci' the current favoured device?
Dave
Quoted 31 lines
Signed-off-by Stefan Hajnoczi <[email protected]>--- qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)qemu-options.hx +5
-2@@ -1436,12 +1436,15 @@ STEXI ETEXI DEF("usb", 0, QEMU_OPTION_usb, - "-usb enable the USB driver (if it is not used by default yet)\n", + "-usb enable on-board USB host controller (if not enabled by default)\n", QEMU_ARCH_ALL) STEXI @item -usb @findex -usb -Enable the USB driver (if it is not used by default yet). +Enable USB emulation on machine types with an on-board USB host controller (if +not enabled by default). Note that on-board USB host controllers may not +support USB 3.0. In this case -device nec-usb-xhci can be used instead on +machines with PCI. ETEXI DEF("usbdevice", HAS_ARG, QEMU_OPTION_usbdevice,Signature · 1 line
2.21.0
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 17 lines · Thomas Huth
Quoted 16 lines · Stefan Hajnoczi
The -usb section of the man page is not very clear on what exactly -usb does and fails to mention xHCI as a modern alternative (-device nec-usb-xhci).
Signed-off-by Stefan Hajnoczi <[email protected]>--- qemu-options.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)qemu-options.hx +0
-0@@ -1436,12 +1436,15 @@ STEXI ETEXI
Quoted 13 lines
qemu-options.hx STEXI · line 1446
Quoted 11 lines
qemu-options.hx +4
-2DEF("usb", 0, QEMU_OPTION_usb, - "-usb enable the USB driver (if it is not used by default yet)\n", + "-usb enable on-board USB host controller (if not enabled by default)\n", QEMU_ARCH_ALL) STEXI @item -usb @findex -usb -Enable the USB driver (if it is not used by default yet). +Enable USB emulation on machine types with an on-board USB host controller (if +not enabled by default). Note that on-board USB host controllers may not +support USB 3.0. In this case -device nec-usb-xhci can be used instead onShould we maybe rather recommend qemu-xhci instead?
I think nec-usb-xhci is preferred because there are Windows drivers. IIRC qemu-xhci works under Linux but not under Windows (just because the PCI Vendor/Device ID aren't covered by any driver).
Gerd: Can you confirm this?
Stefan
Hi,
Quoted 7 lines
Quoted 6 lines
qemu-options.hx STEXI · line 1446
Quoted 4 lines
qemu-options.hx +3
-1-Enable the USB driver (if it is not used by default yet). +Enable USB emulation on machine types with an on-board USB host controller (if +not enabled by default). Note that on-board USB host controllers may not +support USB 3.0. In this case -device nec-usb-xhci can be used instead onShould we maybe rather recommend qemu-xhci instead?
Quoted 5 lines
I think nec-usb-xhci is preferred because there are Windows drivers. IIRC qemu-xhci works under Linux but not under Windows (just because the PCI Vendor/Device ID aren't covered by any driver).
Gerd: Can you confirm this?
That applies to windows 7 only, which is EOL next year.
win7 doesn't ship with xhci drivers, but you can download and use nec/renesas drivers which require nec-usb-xhci.
win8+ ships with generic xhci drivers which works with all xhci hardware, including qemu-xhci.
So it indeed makes sense to refer to qemu-xhci.
cheers,
Gerd
Quoted 17 lines · Gerd Hoffmann
Hi,
Quoted 7 lines
Quoted 6 lines
qemu-options.hx STEXI · line 1446
Quoted 4 lines
qemu-options.hx +3
-1-Enable the USB driver (if it is not used by default yet). +Enable USB emulation on machine types with an on-board USB host controller (if +not enabled by default). Note that on-board USB host controllers may not +support USB 3.0. In this case -device nec-usb-xhci can be used instead onShould we maybe rather recommend qemu-xhci instead?
Quoted 5 lines
I think nec-usb-xhci is preferred because there are Windows drivers. IIRC qemu-xhci works under Linux but not under Windows (just because the PCI Vendor/Device ID aren't covered by any driver).
Gerd: Can you confirm this?
That applies to windows 7 only, which is EOL next year.
Quoted 7 lines
win7 doesn't ship with xhci drivers, but you can download and use nec/renesas drivers which require nec-usb-xhci.
win8+ ships with generic xhci drivers which works with all xhci hardware, including qemu-xhci.
So it indeed makes sense to refer to qemu-xhci.
Thanks, will fix in v2!
Stefan