Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ln9Mk-0000rU-IC for qemu-devel@nongnu.org; Fri, 27 Mar 2009 06:32:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ln9Mf-0000mD-F6 for qemu-devel@nongnu.org; Fri, 27 Mar 2009 06:32:46 -0400 Received: from [199.232.76.173] (port=49032 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ln9Mf-0000m1-9f for qemu-devel@nongnu.org; Fri, 27 Mar 2009 06:32:41 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:17447) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1Ln9Me-0003XF-KD for qemu-devel@nongnu.org; Fri, 27 Mar 2009 06:32:41 -0400 Received: from samy by const with local (Exim 4.69) (envelope-from ) id 1Ln9Mc-0005H5-4z for qemu-devel@nongnu.org; Fri, 27 Mar 2009 11:32:38 +0100 Date: Fri, 27 Mar 2009 11:32:38 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] [PATCH] honor IDE_DMA_BUF_SECTORS Message-ID: <20090327103238.GE5408@const.bordeaux.inria.fr> References: <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> <20090326184814.GC5458@const.famille.thibault.fr> <49CBDA22.3070600@redhat.com> <20090326231801.GE5458@const.famille.thibault.fr> <49CCA1CF.4000003@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49CCA1CF.4000003@redhat.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 Avi Kivity, le Fri 27 Mar 2009 12:52:15 +0300, a écrit : > However implementing DMA limits like you propose > (IDE_DMA_BUF_SECTORS) will not fix the bug, only reduce performance. Have you read what I wrote? v > >Just to make sure: I'm _not_ saying that should be done in the DMA > >code. I said it should be done in the block layer, shared by all > >block drivers. > > A generic fix will have to issue a new aio request. Ah, right, that's different from the case below. > block-raw-posix need not do that, just a while loop. For the synchronous interface, yes. For the asynchronous interface, short reads could happen too... (unfortunately we are aware of that too late for queuing other requests and getting efficiency). Samuel