From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHvMo-0006BO-KU for qemu-devel@nongnu.org; Fri, 16 Feb 2007 00:10:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHvMm-0006BB-5W for qemu-devel@nongnu.org; Fri, 16 Feb 2007 00:10:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHvMl-0006B8-Vy for qemu-devel@nongnu.org; Fri, 16 Feb 2007 00:10:40 -0500 Received: from mga01.intel.com ([192.55.52.88]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHvMl-0008KO-G5 for qemu-devel@nongnu.org; Fri, 16 Feb 2007 00:10:39 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Subject: RE: [Qemu-devel] USB storage cannot be recognized on guest Linuxdomain? Date: Fri, 16 Feb 2007 13:10:34 +0800 Message-ID: In-Reply-To: <1171550915.4091.52.camel@vaio> From: "Yu, Xiaoyang" 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 Lonnie, Thank you so much for write the patch for me! It works well with Fedora = Core 4. Since it added UHCI suspend/resume support, so I guess it should = also work with Windows XP :-) Thanks Xiaoyang =20 -----Original Message----- From: qemu-devel-bounces+xiaoyang.yu=3Dintel.com@nongnu.org = [mailto:qemu-devel-bounces+xiaoyang.yu=3Dintel.com@nongnu.org] On Behalf = Of Lonnie Mendez Sent: 2007=C4=EA2=D4=C215=C8=D5 22:49 To: qemu-devel@nongnu.org Subject: RE: [Qemu-devel] USB storage cannot be recognized on guest = Linuxdomain? On Thu, 2007-02-15 at 15:44 +0800, Yu, Xiaoyang wrote: > Hi Lonnie, >=20 > Thanks a lot for the information. >=20 > In our use case, we do not know the USB disk information before it is = plugged by customer, so we cannot start qemu with -usbdevice. >=20 > For Linux, reload the uhci_hcd driver works. If we use this solution = in our use case, then we need to issue an interrupt (maybe by = pic_set_irq_new?) to the guest OS when QEMU detect a USB device is = attached, and then the guest OS will reload the uhci_hcd driver. Is that = right? Currently there is something wrong with the list archive server, = so I haven't search out any example code from it :-( >=20 > I found that there is a patch to add the UHCI suspend/resume support = in the archive posted by you, but it cannot be applied to QEMU-DM 0.8.2 = directly: > http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00576.html >=20 > I wonder why there is no official UHCI suspend/resume support in QEMU. = To reload the uhci_hcd driver seems to be only a work around. Sometimes = it even cause kernel oops.=20 >=20 > I also wonder why the kernel 2.6.11-1.1369_FC4 can recognize USB = storage without UHCI suspend/resume support. The attached patch is enough to have a device on linux recognized after usb_add. However, the device must be attached to the uhci controller's root hub. If a device is attached to an emulated usb hub device it will not be detected.