Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ixmnk-0001PQ-MR for qemu-devel@nongnu.org; Thu, 29 Nov 2007 12:03:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ixmng-0001LH-TV for qemu-devel@nongnu.org; Thu, 29 Nov 2007 12:03:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixmng-0001L4-OE for qemu-devel@nongnu.org; Thu, 29 Nov 2007 12:03:44 -0500 Received: from web57003.mail.re3.yahoo.com ([66.196.97.107]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ixmng-00027e-6N for qemu-devel@nongnu.org; Thu, 29 Nov 2007 12:03:44 -0500 Date: Thu, 29 Nov 2007 09:03:43 -0800 (PST) From: "Balazs Attila-Mihaly \(Cd-MaN\)" Subject: Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <573886.97653.qm@web57003.mail.re3.yahoo.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 =0ALe mercredi 28 novembre 2007 =E0 14:24 +0000, Samuel Thibault a =E9crit = :=0A> Hi,=0A> =0A> Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a =E9= crit :=0A> > + ret =3D posix_memalign((void**)&buf, 0x200, 512);=0A> =0A= > For making this more easily portable, maybe it should be a new=0A> qemu_m= emalign() function? Also, the alignment may probably be better=0A as=0A> a= global macro, since the alignment requirements depend on the OS.=0A=0A> I = think O_DIRECT is linux specific=0A=0AWindows has something similar (I thin= k). Check out the FILE_FLAG_WRITE_THROUGH and FILE_FLAG_NO_BUFFERING flags = for the CreateFile API call under Win32 (http://msdn2.microsoft.com/en-us/l= ibrary/aa363858.aspx)=0A=0ABest regards.=0A=0A=0A=0A=0A ______________= _____________________________________________=0AYahoo! Answers - Got a ques= tion? Someone out there knows the answer. Try it=0Anow.=0Ahttp://uk.answers= .yahoo.com/