From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: EHCI / USB2.0 for USB passthrough, or how to pass USB host device Date: Sat, 08 May 2010 12:32:19 +0200 Message-ID: <4BE53DB3.8050209@web.de> References: <675F7D6F-71E5-4783-9107-F7B4491D0E93@netspot.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC47F300E503246AED28C52B0" Cc: kvm@vger.kernel.org To: Tom Lanyon Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:44220 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170Ab0EHKcm (ORCPT ); Sat, 8 May 2010 06:32:42 -0400 In-Reply-To: <675F7D6F-71E5-4783-9107-F7B4491D0E93@netspot.com.au> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC47F300E503246AED28C52B0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tom Lanyon wrote: > Hi list, >=20 > I've been playing with some KVM guests on KVM 83 on a RedHat 2.6.18 ker= nel (2.6.18-164.15.1.el5). >=20 > I tried to pass through a USB TV tuner device with a hostdev option in = the guest's configuration. The guest can see the device but the driver (d= vb_usb_dib0700) refuses to initialise it since it detected QEMU emulating= a USB 1.1 host and needs USB 2.0: > =09 > dvb-usb: This USB2.0 device cannot be run on a USB1.1 port. (it lacks = a hardware PID filter) >=20 > Instead, and as this is the only USB device on the host, I tried to pas= s through the whole USB host controller to the guest via PCI pass through= =2E >=20 > There's three functions provided by the USB controller's PCI device: > 01:08.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 = Controller (rev 62) > 01:08.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 = Controller (rev 62) > 01:08.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 65) >=20 > so I tried to pass the USB 2.0 (01:08.2) function to the guest but rece= ived an error when trying to start the guest: >=20 > error: this function is not supported by the hypervisor: No PCI reset = capability available for 0000:01:08.2 >=20 > I figured this was because I was only trying to pass one function of a = multi-function device, so I tried passing all three functions concurrentl= y but received the same 'PCI reset capability' error. >=20 > So, is there a way to emulate a USB 2.0 / EHCI controller in a guest an= d pass my USB device through? or alternatively, can anyone suggest how to= get the PCI device(s) passed through for the physical USB controller? There is ongoing work by David Ahern et al. to add EHCI emulation. I'm hosting the QEMU tree that carries the patches: git://git.kiszka.org/qemu.git ehci As KVM is usable in upstream QEMU, you should be able to test it this way (append -enable-kvm). Feedback welcome (to qemu-devel please). Jan --------------enigC47F300E503246AED28C52B0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkvlPcgACgkQitSsb3rl5xRGMACfSXr5GaBkNXgQ46IGD+dLhLmG HLgAoN26CXQ0hAGty8k1NxNORsf1xiwX =INl/ -----END PGP SIGNATURE----- --------------enigC47F300E503246AED28C52B0--