From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmlas-0005jR-M4 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 13:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmlao-0001QZ-I8 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 13:46:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:36734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmlao-0001QM-D5 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 13:45:58 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bmlan-00054b-D2 for ; Wed, 21 Sep 2016 17:45:57 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 2FE372E80DA for ; Wed, 21 Sep 2016 17:45:55 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Sep 2016 17:36:48 -0000 From: Celine Reply-To: Bug 1626207 <1626207@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160921173119.27130.58488.malonedeb@chaenomeles.canonical.com> Message-Id: <20160921173648.23535.66415.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1626207] Re: -device usb-host failing with usbip_vudc-vhdi_hcd gadget List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Error in title, was supposed to say: -device usb-host failing with usbip_vudc-vhci_hcd gadget -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1626207 Title: -device usb-host failing with usbip_vudc-vhdi_hcd gadget Status in QEMU: New Bug description: I must admit that I do not know if this is a Qemu or a Kernel issue, but I try reporting here: When I try to forward a copy of my USB mouse that I made with the new vir= tual USB device controller in kernel 4.7 I get the following in my log: [ +0.703256] usb 1-4: reset full-speed USB device number 3 using xhci_hcd [ +1.020776] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855013] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.859052] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.857000] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.000141] usb 7-3: USB disconnect, device number 10 [ +0.153056] usb 1-4: reset full-speed USB device number 3 using xhci_hcd [ +0.703746] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855001] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855006] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855005] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.000009] usb usb7-port3: unable to enumerate USB device the commands I use for makeing the virtual device are(after making a copy= of the report description of my real mouse in /root/usb/kingston_report_de= sc): mkdir /sys/kernel/config/usb_gadget/winmouse cd /sys/kernel/config/usb_gadget/winmouse echo "0x047d" > idVendor echo "0x1020" > idProduct mkdir strings/0x409 echo 2016 > strings/0x409/serialnumber echo Kensington > strings/0x409/manufacturer echo "Kensington Expert Mouse" > strings/0x409/product mkdir configs/c.1 mkdir configs/c.1/strings/0x409 mkdir functions/hid.usb2 echo 2 > functions/hid.usb2/protocol echo 1 > functions/hid.usb2/subclass echo 4 > functions/hid.usb2/report_length cat /root/usb/kingston_report_desc > functions/hid.usb2/report_de= sc echo 0xa0 > configs/c.1/bmAttributes echo 100 > configs/c.1/MaxPower ln -s functions/hid.usb2 configs/c.1 echo usbip-vudc.2 > UDC usbip attach -r localhost -d usbip-vudc.2 The virtual mouse then shows up as Bus7,Dev10 and I use the option -device usb-host,hostbus=3D7,hostaddr=3D10,id=3Dhostdev6,bus=3Dusb.0,port= =3D2 in Qemu to attach it. This is Qemu 2.7.0 on kernel 4.7.4 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1626207/+subscriptions