Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lmucp-0004Ap-OB for qemu-devel@nongnu.org; Thu, 26 Mar 2009 14:48:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmucl-00049T-CP for qemu-devel@nongnu.org; Thu, 26 Mar 2009 14:48:23 -0400 Received: from [199.232.76.173] (port=45234 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmuck-00049L-Ue for qemu-devel@nongnu.org; Thu, 26 Mar 2009 14:48:19 -0400 Received: from solo.fdn.fr ([80.67.169.19]:37669) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lmuck-0003li-5P for qemu-devel@nongnu.org; Thu, 26 Mar 2009 14:48:18 -0400 Received: from const (reverse-89.fdn.fr [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id 9140344EF4 for ; Thu, 26 Mar 2009 19:48:15 +0100 (CET) Received: from samy by const with local (Exim 4.69) (envelope-from ) id 1Lmucg-0002el-SW for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:48:15 +0100 Date: Thu, 26 Mar 2009 19:48:14 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] [PATCH] honor IDE_DMA_BUF_SECTORS Message-ID: <20090326184814.GC5458@const.famille.thibault.fr> References: <49CA6E4A.4080408@eu.citrix.com> <49CB5793.4030006@redhat.com> <49CB599D.6000701@eu.citrix.com> <49CB5FA0.10101@redhat.com> <49CB6AF7.3080604@eu.citrix.com> <49CB70AC.3060900@redhat.com> <20090326124719.GL5642@const.bordeaux.inria.fr> <49CB7C0F.7010507@redhat.com> <20090326153021.GP5642@const.bordeaux.inria.fr> <49CBCA3C.2030909@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <49CBCA3C.2030909@redhat.com> Content-Transfer-Encoding: quoted-printable 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 Avi Kivity, le Thu 26 Mar 2009 20:32:28 +0200, a =E9crit : > Samuel Thibault wrote: > >Avi Kivity, le Thu 26 Mar 2009 14:58:55 +0200, a =E9crit : > >>Samuel Thibault wrote: > >>>it should be centralized in the block layer instead of placing the > >>>burden on all block format drivers ;) > >>> =20 > >>If other drivers need to do that, certainly. > > > >In our case the other driver is specific to Xen. >=20 > I'm confused. I can only count one driver which has limited dma size. Then you are not looking at the same place as I am. The Xen tree is at http://xenbits.xensource.com/git-http/qemu-xen-unstable.git > >>>One thing for instance that still have been overlooked although patc= hes > >>>have been sent is block-raw-posix' read/write_pread_aligned() that > >>>consider partial read/writes as an error. That's a bug. > >>> =20 > >>Right. Unrelated topic though? > > > >Nope. It's exactly the issue: read/write() may not be able to perform > >the whole operation in just one go, and qemu should continue in that > >case. >=20 > Oh, you're overloading block-raw-posix? I'm not. Actually, I am _also_ implementing the read/write() functions, but that's another matter. In the xen tree, there is an addition block-vbd.c driver. I'm here just pointing out that the problem is not _only_ in the xen-specific driver, but also in the posix driver, on any OS that doesn't necessarily do all the work the caller asked for (which is _allowed_ by POSIX). > Isn't it more natural for you to implement > block-raw-xen-pv-block-frontend? That's it. > You'd be able to use asynchronous requests instead of a thread pool > (much like block-raw-linux-aio). That's it. But the xen ring protocols limits the amount of data transferred at a time, thus the limitation. Samuel