From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7yC-0002G6-Db for qemu-devel@nongnu.org; Tue, 16 Apr 2013 11:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US7y7-0004ds-7H for qemu-devel@nongnu.org; Tue, 16 Apr 2013 11:38:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7y6-0004dk-Vl for qemu-devel@nongnu.org; Tue, 16 Apr 2013 11:38:51 -0400 Message-ID: <516D7082.9090101@redhat.com> Date: Tue, 16 Apr 2013 17:38:42 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] USB2.0 disk format failure in windows guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alan Stern Cc: Yanqiangjun , Hanweidong , "linux-usb@vger.kernel.org" , Luonengjun , "qemu-devel@nongnu.org" , "hdegoede@redhat.com" , "Gonglei (Arei)" Hi, > Fixing this will require qemu to copy the beginning and ending parts of > these non-aligned qTDs into separate bounce buffers so that the URB > length can be divisible by 512. Worth trying: http://www.kraxel.org/cgit/qemu/log/?h=usb.80 It puts the qemu usb passthrough code upside down. All xfers will go through a bounce buffer, requests are submitted via libusbx. That should fix it. Of course there is the risk of regressions in other areas as it is all new code. Also make sure you have libusbx-devel installed, otherwise qemu will fallback to the old code which uses usbfs ioctls directly. cheers, Gerd