Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYRmE-0004WT-2P for qemu-devel@nongnu.org; Sat, 05 Nov 2005 12:24:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYRmC-0004WE-JS for qemu-devel@nongnu.org; Sat, 05 Nov 2005 12:24:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYRmC-0004WA-Dd for qemu-devel@nongnu.org; Sat, 05 Nov 2005 12:24:24 -0500 Received: from [24.93.47.44] (helo=ms-smtp-05-eri0.texas.rr.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYRmC-0001U3-CI for qemu-devel@nongnu.org; Sat, 05 Nov 2005 12:24:24 -0500 Received: from vaio.gnome.dnsalias.net (cpe-67-9-163-3.austin.res.rr.com [67.9.163.3]) by ms-smtp-05-eri0.texas.rr.com (8.12.10/8.12.7) with ESMTP id jA5HOKB2026025 for ; Sat, 5 Nov 2005 11:24:21 -0600 (CST) From: Lonnie Mendez Subject: Re: [Qemu-devel] USB support Date: Sat, 5 Nov 2005 11:24:19 -0600 References: <436CC599.3080905@bellard.org> <200511051731.24176.info@vruppert.de> <436CE785.10806@bellard.org> In-Reply-To: <436CE785.10806@bellard.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511051124.19779.lmendez19@austin.rr.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Saturday 05 November 2005 11:10 am, Fabrice Bellard wrote: > 1) The host OS must not use the USB device. It means in particular that > no host OS driver must be present for that device. The solution I am > using is to rename the host kernel module "usb-storage.o" to > "usb-storage.o.disabled" so that it is not loaded by Linux. Then QEMU > can exclusively access to the corresponding host storage USB device. The > same apply to every other type of USB devices. usb devfs has a disconnect ioctl (USBDEVFS_DISCONNECT) which allows you to disconnect a single device from a driver. A suggestion is to hook the interface up to qemu monitor. Then you would be able to list usb devices and then claim only the ones you want to use.