From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FKAAA-0005MA-KO for qemu-devel@nongnu.org; Fri, 17 Mar 2006 03:18:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FKAA8-0005Ll-QF for qemu-devel@nongnu.org; Fri, 17 Mar 2006 03:18:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKAA8-0005Li-KA for qemu-devel@nongnu.org; Fri, 17 Mar 2006 03:18:20 -0500 Received: from [24.93.47.41] (helo=ms-smtp-02-eri0.texas.rr.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FKAEy-0001MA-8P for qemu-devel@nongnu.org; Fri, 17 Mar 2006 03:23:20 -0500 Received: from [192.168.0.11] (cpe-67-9-160-120.austin.res.rr.com [67.9.160.120]) by ms-smtp-02-eri0.texas.rr.com (8.13.4/8.13.4) with ESMTP id k2H8IIoR015336 for ; Fri, 17 Mar 2006 02:18:19 -0600 (CST) Message-ID: <441A70C8.1060109@austin.rr.com> Date: Fri, 17 Mar 2006 02:18:16 -0600 From: Lonnie Mendez MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] hw/usb.c: fix some issues with hub layer preventing bsd guest usb stack from running 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 Hello list. Linked are some fixes to the hub layer that allow a FreeBSD guest's usb stack to run. Basically it allows for a variable hub descriptor size (if qemu currently had 7 emulated ports on the hub it would be OK). With this it was able to mount a flash drive and transfer some files from the drive to the guest. The patch applies to current cvs. The 'FreeBSD Workaround' can best be explained by this: http://fxr.watson.org/fxr/source/dev/usb/uhub.c?v=RELENG6#L83 The data for the status change enpdoint in FreeBSD's uhub layer is a fixed byte. This is of course incorrect and the patch compensates slightly for this in order to allow the driver to at least run. http://gnome.dnsalias.net/patches/qemu-hubfixups.patch