Received: from eggs.gnu.org ([208.118.235.92]:44056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPa5m-0006sI-67 for qemu-devel@nongnu.org; Tue, 09 Apr 2013 11:04:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPa5h-0004to-JT for qemu-devel@nongnu.org; Tue, 09 Apr 2013 11:04:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPa5h-0004sn-CU for qemu-devel@nongnu.org; Tue, 09 Apr 2013 11:04:09 -0400 From: Markus Armbruster References: <1365511954-10606-1-git-send-email-pbonzini@redhat.com> <8738uzet89.fsf@blackfin.pond.sub.org> <51642C0C.6010607@redhat.com> Date: Tue, 09 Apr 2013 17:04:02 +0200 In-Reply-To: <51642C0C.6010607@redhat.com> (Paolo Bonzini's message of "Tue, 09 Apr 2013 16:56:12 +0200") Message-ID: <87r4ij690d.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2] migration: initialize RAM to zero List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, aliguori@us.ibm.com, quintela@redhat.com, pl@kamp.de, qemu-devel@nongnu.org, owasserm@redhat.com, stefanha@redhat.com Paolo Bonzini writes: > Il 09/04/2013 15:20, Markus Armbruster ha scritto: >>> > -#if defined(CONFIG_VALGRIND) >>> > - if (running_on_valgrind < 0) { >>> > - /* First call, test whether we are running on Valgrind. >>> > - This is a substitute for RUNNING_ON_VALGRIND from >>> > valgrind.h. */ >>> > - const char *ld = getenv("LD_PRELOAD"); >>> > - running_on_valgrind = (ld != NULL && strstr(ld, "vgpreload")); >>> > + if ((intptr_t) ptr == -1) { >> Recommend ptr == MAP_FAILED >> > > Worth respinning? I'd do it, but it's really your choice.