From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kbgrd-00047L-2I for qemu-devel@nongnu.org; Fri, 05 Sep 2008 15:21:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kbgrb-00044l-Ml for qemu-devel@nongnu.org; Fri, 05 Sep 2008 15:21:00 -0400 Received: from [199.232.76.173] (port=48991 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kbgrb-00044S-EM for qemu-devel@nongnu.org; Fri, 05 Sep 2008 15:20:59 -0400 Received: from [67.18.187.6] (port=53507 helo=tjworld.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kbgrb-0007sp-8F for qemu-devel@nongnu.org; Fri, 05 Sep 2008 15:20:59 -0400 Subject: Re: [Qemu-devel] [PATCH] Add USB sys file-system support (v2) From: TJ In-Reply-To: <48C1346F.3000405@windriver.com> References: <1220571341.2638.6.camel@hephaestion> <1220580385.2638.15.camel@hephaestion> <48C1346F.3000405@windriver.com> Content-Type: text/plain Date: Fri, 05 Sep 2008 20:20:54 +0100 Message-Id: <1220642454.5470.25.camel@hephaestion> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wessel Cc: qemu-devel@nongnu.org, kvm On Fri, 2008-09-05 at 08:30 -0500, Jason Wessel wrote: > I tried out the patch because it looked reasonably interesting on ubuntu > 7.10 64bit, and looked like a nice way to attach a local USB device, but > it did not quite work. > > IE: > (qemu) info usbhost > Device 3.2, speed 12 Mb/s > Class 00: USB device 067b:2303, USB-Serial Controller Jason, I think this is related to handling the USB serial device. Try another USB device - a flash-memory key for example. Here's the results of my tests: Host is Ubuntu Hardy amd64 8.04.1 (2.6.24-21-generic). VM guest is Ubuntu Gutsy server (2.6.22-14-server) hypervisor is kvm-74. I think there is a problem with the usb_add name functions - the host:VID:PID rarely worked for me so I always use host:Bus.Device format. I've got a USB-to-serial converter here too: Bus 001 Device 004: ID 0711:0230 Magic Control Technology Corp. MCT-232 Serial Port Here's the output I get: usb_add host:1.4 husb: open device 1.4 husb: opened /dev/bus/usb/001/004 husb: config #1 need -1 husb: 1 interfaces claimed for configuration -1 husb: grabbed usb device 1.4 usb_linux_update_endp_table: Broken pipe If however I add a USB flash key: Bus 005 Device 016: ID 0781:5151 SanDisk Corp. Cruzer Micro 256/512MB Flash Drive usb_add host:5.16 husb: open device 5.16 husb: opened /dev/bus/usb/005/016 husb: config #1 need -1 husb: 1 interfaces claimed for configuration -1 husb: grabbed usb device 5.16 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 and the device appears and is mountable in the VM.