qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-doc: Update to use the new way of attaching USB devices
Date: Thu, 04 May 2017 16:15:04 +0200	[thread overview]
Message-ID: <1493907304.371.29.camel@redhat.com> (raw)
In-Reply-To: <87vapgg7vh.fsf@dusky.pond.sub.org>

> > -PCI UHCI USB controller and a virtual USB hub.
> > +PCI UHCI, OHCI, EHCI or XHCI USB controller and a virtual USB-1.1 hub.
> 
> Do we need to say "USB-1.1 hub", or would "USB hub" do?

Makes sense to explicitly say it is 1.1 (full speed) hub, usb2+3 devices
will work either with reduced speed or not at all.

In general you want avoid the hub.  xhci can be configured with up to 15
ports, and if that isn't enough you can plug a second xhci
controller ...

> > +only works with certain host operating systems). QEMU will automatically create
> > +and connect virtual USB hubs as necessary to connect multiple USB devices.
> 
> Extra points for updating "works only on Linux".
> 
> Gerd, can we drop "experimental" now?

Can be dropped.

> > -Pass through the host device identified by @var{vendor_id:product_id}
> > +@item usb-host,vendorid=@var{vendor},productid=@var{product}
> > +Pass through the host device identified by @var{vendor} and @var{product} ID
> >  (Linux only)
> 
> Gerd, is this still Linux only?

No.  windows doesn't work, any un*x which has libusb support work, not
sure about macos.

> I figure users almost always use one of these two forms.  However, the
> code treats all four of hostbus, hostaddr, vendorid, productid as
> optional, and grabs the first device that matches.  Missing parameter
> matches anything.  Not sure how precisely we want to document that
> here.  Gerd?

docs/usb2.txt has some suggestions which combinations make sense.

>     $ qemu-system-x86_64 -nodefaults -S -usb -usbdevice serial:vendorid=403,productid=6001:null
>     Unexpected error in object_property_find() at /work/armbru/qemu/qom/object.c:1008:
>     upstream-qemu: -usbdevice serial:vendorid=403,productid=6001:null: Property '.vendorid' not found
>     Aborted (core dumped)
> 
> Someone broke the feature.  Unless it's recent breakage, we can bury it,
> I guess.  Gerd?

In tree for a while already with nobody noticing so far.

cheers,
  Gerd

      parent reply	other threads:[~2017-05-04 14:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-04  8:58 [Qemu-devel] [PATCH] qemu-doc: Update to use the new way of attaching USB devices Thomas Huth
2017-05-04 11:48 ` Markus Armbruster
2017-05-04 12:09   ` Thomas Huth
2017-05-04 13:47     ` Markus Armbruster
2017-05-04 14:15   ` Gerd Hoffmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493907304.371.29.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=armbru@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).