Received: from eggs.gnu.org ([2001:4830:134:3::10]:45426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnBAm-0005lM-Ju for qemu-devel@nongnu.org; Sat, 08 Nov 2014 13:55:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnBAh-0004qn-K4 for qemu-devel@nongnu.org; Sat, 08 Nov 2014 13:55:44 -0500 Received: from indium.canonical.com ([91.189.90.7]:53376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnBAh-0004qh-Ez for qemu-devel@nongnu.org; Sat, 08 Nov 2014 13:55:39 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XnBAg-0006SH-HH for ; Sat, 08 Nov 2014 18:55:38 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 7995A2E80AF for ; Sat, 8 Nov 2014 18:55:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 08 Nov 2014 18:47:17 -0000 From: MikeFrysinger Sender: bounces@canonical.com References: <20141026182810.4047.56419.malonedeb@soybean.canonical.com> Message-Id: <20141108184717.8421.94632.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host Reply-To: Bug 1385934 <1385934@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org the problem is this commit: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommit;h=3Db791c3b38c7969cb9f4acda822= 9e19fd865a1c08 it's easy to reproduce -- plug in a USB flash drive and try to pass it through on the host: $ lsusb Bus 003 Device 004: ID 1307:0163 Transcend Information, Inc. 256MB/512MB/1G= B Flash Drive so launch qemu with that: -usbdevice host:1307:0163 and then in the VM, if it fails, you get those errors in dmesg, and the device doesn't show up in `lsusb`. if it passes, `lsusb` reports it fine. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1385934 Title: USB with passthrougth guest cannot enumerate USB host Status in QEMU: New Bug description: Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assi= gned_to_Guest Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-k= vm -m 512 -k fr -net nic -net tap,ifname=3Dtap1,script=3D/bin/ifup.script -= kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=3D/dev/sda = -usb -device usb-host,hostbus=3D1,hostaddr=3D6 The USB device does not show and USB stack seems not working On the guest: dmesg |grep -i usb [ 1.416966] hub 1-0:1.0: USB hub found [ 1.420431] usbcore: registered new interface driver usb-storage [ 1.445374] usbcore: registered new interface driver usbhid [ 1.446839] usbhid: USB HID core driver [ 1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd [ 2.126173] usb 1-1: Invalid ep0 maxpacket: 64 [ 2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd [ 2.648112] usb 1-1: Invalid ep0 maxpacket: 64 [ 2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd [ 2.913001] usb 1-1: Invalid ep0 maxpacket: 64 [ 3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd [ 3.180070] usb 1-1: Invalid ep0 maxpacket: 64 [ 3.181633] usb usb1-port1: unable to enumerate USB device lsusb Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub On the host: lsusb Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U= 802.11 Wireless LAN Adapter qemu-system-x86_64 --version QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1385934/+subscriptions