Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfHLc-0004BH-5T for qemu-devel@nongnu.org; Fri, 28 Mar 2008 12:22:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfHLb-0004B5-L4 for qemu-devel@nongnu.org; Fri, 28 Mar 2008 12:22:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfHLb-0004B2-G6 for qemu-devel@nongnu.org; Fri, 28 Mar 2008 12:22:31 -0400 Received: from hall.aurel32.net ([88.191.38.19]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JfHLb-0002PJ-Az for qemu-devel@nongnu.org; Fri, 28 Mar 2008 12:22:31 -0400 Received: from volta.aurel32.net ([2002:52e8:2fb:1:21e:8cff:feb0:693b]) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JfHLZ-0000n8-6H for qemu-devel@nongnu.org; Fri, 28 Mar 2008 17:22:29 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1JfHLa-0003e8-8H for qemu-devel@nongnu.org; Fri, 28 Mar 2008 17:22:30 +0100 Date: Fri, 28 Mar 2008 17:22:30 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Improve DMA transfers by increasing the buffer size. Message-ID: <20080328162230.GA13159@volta.aurel32.net> References: <18410.31540.160387.110544@mariner.uk.xensource.com> <20080327235340.GA7964@volta.aurel32.net> <18412.55320.507537.335497@mariner.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <18412.55320.507537.335497@mariner.uk.xensource.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 On Fri, Mar 28, 2008 at 11:35:52AM +0000, Ian Jackson wrote: > Aurelien Jarno writes ("Re: [Qemu-devel] [PATCH] Improve DMA transfers by increasing the buffer size."): > > On Wed, Mar 26, 2008 at 04:35:00PM +0000, Ian Jackson wrote: > > Content-Description: message body text > > > +#define IDE_DMA_BUF_SIZE 131072 > > > > Wouldn't it be better to define this value in number of sectors? This > > would avoid a few divisions in the code, and anyway the code handling > > DMA transfers is working with a number of sectors, not a number of > > bytes. > > I don't have much of an opinion about what units it should be in. The > divisions are just at compile-time of course. I agree that the generated assembly code should not be different, but this makes the code less readable. > If you prefer I'll send another version with it done in sectors :-). Please send it, I will commit it. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net