From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ixfsu-000574-I6 for qemu-devel@nongnu.org; Thu, 29 Nov 2007 04:40:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ixfss-00056N-Ni for qemu-devel@nongnu.org; Thu, 29 Nov 2007 04:40:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixfss-00056G-EV for qemu-devel@nongnu.org; Thu, 29 Nov 2007 04:40:38 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ixfsr-0008Ua-Ca for qemu-devel@nongnu.org; Thu, 29 Nov 2007 04:40:38 -0500 Subject: Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" From: Laurent Vivier In-Reply-To: <20071128142409.GF4083@implementation.uk.xensource.com> References: <11962585701617@bull.net> <1196258570752@bull.net> <20071128142409.GF4083@implementation.uk.xensource.com> Date: Thu, 29 Nov 2007 10:40:21 +0100 Message-Id: <1196329221.3917.3.camel@frecb07144> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-UjUiV7yvdSVuLa2MZz0F" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault Cc: qemu-devel@nongnu.org --=-UjUiV7yvdSVuLa2MZz0F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le mercredi 28 novembre 2007 =C3=A0 14:24 +0000, Samuel Thibault a =C3=A9cr= it : > Hi, >=20 > Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a =C3=A9crit : > > + ret =3D posix_memalign((void**)&buf, 0x200, 512); >=20 > For making this more easily portable, maybe it should be a new > qemu_memalign() function? Also, the alignment may probably be better as > a global macro, since the alignment requirements depend on the OS. In fact, I think I should use qemu_vmalloc(). I modify the patch for that. Laurent --=20 ------------- Laurent.Vivier@bull.net -------------- "Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke --=-UjUiV7yvdSVuLa2MZz0F Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHTokF9Kffa9pFVzwRAmiWAKDKidpoViqGA2VKHguIdhV2tLzj8wCfZhXb HDbFrz0ShaztafJpvxSot5g= =+P/N -----END PGP SIGNATURE----- --=-UjUiV7yvdSVuLa2MZz0F--