Re: [Qemu-devel] USB passthrough in qemu

2014-06-13 Thread Michal Suchanek
On 13 June 2014 16:51, Gerd Hoffmann wrote: > Hi, > >> Ok, so without a machine description that has ehci or xhci as default >> device you cannot use -usbdevice and with -device you get a magic >> incantation like -device usb-ehci,id=usb,bus=pci.0,addr=0x4 -device >> usb-host,vendorid=0x0b95,pro

Re: [Qemu-devel] USB passthrough in qemu

2014-06-13 Thread Gerd Hoffmann
Hi, > Ok, so without a machine description that has ehci or xhci as default > device you cannot use -usbdevice and with -device you get a magic > incantation like -device usb-ehci,id=usb,bus=pci.0,addr=0x4 -device > usb-host,vendorid=0x0b95,productid=0x772b,id=hostdev0,bus=usb.0 which > is overl

Re: [Qemu-devel] USB passthrough in qemu

2014-06-13 Thread Michal Suchanek
On 13 June 2014 10:12, Gerd Hoffmann wrote: > On Fr, 2014-06-13 at 09:46 +0200, Michal Suchanek wrote: >> On 13 June 2014 09:33, Gerd Hoffmann wrote: >> > Hi, >> > >> >> However, >> >> -device nec-usb-xhci -usbdevice host:0b95:772b -usbdevice tablet >> >> gives empy xhci bus and both devices at

Re: [Qemu-devel] USB passthrough in qemu

2014-06-13 Thread Gerd Hoffmann
On Fr, 2014-06-13 at 09:46 +0200, Michal Suchanek wrote: > On 13 June 2014 09:33, Gerd Hoffmann wrote: > > Hi, > > > >> However, > >> -device nec-usb-xhci -usbdevice host:0b95:772b -usbdevice tablet > >> gives empy xhci bus and both devices attached to uhci bus which does not > >> work. > > > >

Re: [Qemu-devel] USB passthrough in qemu

2014-06-13 Thread Michal Suchanek
On 13 June 2014 09:33, Gerd Hoffmann wrote: > Hi, > >> However, >> -device nec-usb-xhci -usbdevice host:0b95:772b -usbdevice tablet >> gives empy xhci bus and both devices attached to uhci bus which does not >> work. > > Either drop '-usb' so xhci is the only usb controller, or use -device > us

Re: [Qemu-devel] USB passthrough in qemu

2014-06-13 Thread Gerd Hoffmann
Hi, > However, > -device nec-usb-xhci -usbdevice host:0b95:772b -usbdevice tablet > gives empy xhci bus and both devices attached to uhci bus which does not work. Either drop '-usb' so xhci is the only usb controller, or use -device usb-$device,bus=$name to explicitly say which controller you w

Re: [Qemu-devel] USB passthrough in qemu

2014-06-12 Thread Michal Suchanek
On 12 June 2014 12:26, Gerd Hoffmann wrote: > Hi, > >> However, for the piix4 which is the default platform and is desirable >> due to driver issues in many cases no simple way to instantiate the >> companion setup and have qemu automagically attach the devices >> correctly exists. > > We havn't

Re: [Qemu-devel] USB passthrough in qemu

2014-06-12 Thread Gerd Hoffmann
Hi, > However, for the piix4 which is the default platform and is desirable > due to driver issues in many cases no simple way to instantiate the > companion setup and have qemu automagically attach the devices > correctly exists. We havn't added shortcuts like this to qemu for a while. There

Re: [Qemu-devel] USB passthrough in qemu

2014-06-12 Thread Michal Suchanek
On 12 June 2014 11:08, Gerd Hoffmann wrote: > On Do, 2014-06-12 at 10:53 +0200, Michal Suchanek wrote: >> Hello, >> >> I hit bug https://bugs.launchpad.net/qemu/+bug/685096 and found the >> usb2.txt file in the source which is sadly not installed by the >> distribution. >> >> What I would like is

Re: [Qemu-devel] USB passthrough in qemu

2014-06-12 Thread Gerd Hoffmann
On Do, 2014-06-12 at 10:53 +0200, Michal Suchanek wrote: > Hello, > > I hit bug https://bugs.launchpad.net/qemu/+bug/685096 and found the > usb2.txt file in the source which is sadly not installed by the > distribution. > > What I would like is an -usb2 option which instantiates both uhci/ohci >

[Qemu-devel] USB passthrough in qemu

2014-06-12 Thread Michal Suchanek
Hello, I hit bug https://bugs.launchpad.net/qemu/+bug/685096 and found the usb2.txt file in the source which is sadly not installed by the distribution. What I would like is an -usb2 option which instantiates both uhci/ohci and ehci root hubs. I don't particularly care if the buses appear as comp