From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrw2o-0005dI-PX for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:19:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrw2j-0005cU-9i for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:19:58 -0400 Received: from [199.232.76.173] (port=60024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrw2j-0005cL-2x for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:19:53 -0400 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:6208) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1Lrw2i-0007MW-Em for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:19:52 -0400 Received: from samy by const with local (Exim 4.69) (envelope-from ) id 1Lrw2a-0001W3-5i for qemu-devel@nongnu.org; Thu, 09 Apr 2009 17:19:44 +0200 Date: Thu, 9 Apr 2009 17:19:44 +0200 From: Samuel Thibault Subject: Re: [Qemu-devel] buffer alignment for block backends Message-ID: <20090409151944.GD5457@const.bordeaux.inria.fr> References: <49DCA80A.1020808@eu.citrix.com> <49DCF2C0.9070704@codemonkey.ws> <49DDC66F.2000404@eu.citrix.com> <49DDF3FF.8050706@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49DDF3FF.8050706@codemonkey.ws> 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 Anthony Liguori, le Thu 09 Apr 2009 08:11:27 -0500, a écrit : > >- ide.c:ide_init2 > > > > This buffer is only used when not doing DMA. When doing DMA, we are > able to do zero-copy IO so the alignment of the request depends on how > the guest aligned the request. I suspect you'll find a lot of guests > that, in practice, do not align requests at 4k boundaries. Eeeeerrr, why shoudn't they? Guests usually work on pages, which are already aligned on 4k boundaries. > I don't know what the requirements are for IDE but I would be > surprised if it was 4k. I believe there is no requirement. Samuel