qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qemu-doc: Update to use the new way of attachin


From: Gerd Hoffmann
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

> > -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}
> > address@hidden usb-host,address@hidden,address@hidden
> > +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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]