Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfCtB-0000Qp-El for qemu-devel@nongnu.org; Fri, 28 Mar 2008 07:36:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfCt9-0000QQ-HT for qemu-devel@nongnu.org; Fri, 28 Mar 2008 07:36:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfCt9-0000QN-Ax for qemu-devel@nongnu.org; Fri, 28 Mar 2008 07:36:51 -0400 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfCt9-0006cx-1U for qemu-devel@nongnu.org; Fri, 28 Mar 2008 07:36:51 -0400 Received: from mariner.uk.xensource.com (mariner.uk.xensource.com [172.31.17.38]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m2SBZqIp003407 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 28 Mar 2008 04:35:54 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1JfCsC-0004S8-MG for qemu-devel@nongnu.org; Fri, 28 Mar 2008 11:35:52 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18412.55320.507537.335497@mariner.uk.xensource.com> Date: Fri, 28 Mar 2008 11:35:52 +0000 Subject: Re: [Qemu-devel] [PATCH] Improve DMA transfers by increasing the buffer size. In-Reply-To: <20080327235340.GA7964@volta.aurel32.net> References: <18410.31540.160387.110544@mariner.uk.xensource.com> <20080327235340.GA7964@volta.aurel32.net> From: Ian Jackson 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 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. If you prefer I'll send another version with it done in sectors :-). Ian.