From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REG9e-0001Ux-O9 for qemu-devel@nongnu.org; Thu, 13 Oct 2011 03:56:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REG9d-0001v6-FF for qemu-devel@nongnu.org; Thu, 13 Oct 2011 03:56:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REG9d-0001v0-4h for qemu-devel@nongnu.org; Thu, 13 Oct 2011 03:56:37 -0400 Message-ID: <4E9699C2.30405@redhat.com> Date: Thu, 13 Oct 2011 09:56:50 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <4E95D6F1.4070402@weilnetz.de> <4E95FB7F.2010303@weilnetz.de> <05B92D62-378E-461A-AAD1-541DDA377A4B@suse.de> <4E96047D.3080603@weilnetz.de> In-Reply-To: <4E96047D.3080603@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] 2 MiB alignment in qemu_vmalloc() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers , Alexander Graf , Avi Kivity Hi, > I can try to make QEMU more useable with Valgrind by changing > the QEMU code (which was Valgrind compatible up to Avi's change). Is there some way for apps to figure they are running in valgrind? Then we could choose a different alignment automagically. Who aborts btw? Is this valgrind itself? Or qemu due to memalign failing? In case of the latter we could simply catch it and try again with another alignment ... cheers, Gerd