Received: from eggs.gnu.org ([2001:4830:134:3::10]:39310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRi3N-0001AN-Ie for qemu-devel@nongnu.org; Mon, 25 Jul 2016 11:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRi3I-0001Go-Ja for qemu-devel@nongnu.org; Mon, 25 Jul 2016 11:44:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRi3I-0001GJ-DU for qemu-devel@nongnu.org; Mon, 25 Jul 2016 11:44:20 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB4C91F565 for ; Mon, 25 Jul 2016 15:44:19 +0000 (UTC) From: Markus Armbruster References: <1469008443-72059-1-git-send-email-imammedo@redhat.com> <1469453038-7991-1-git-send-email-imammedo@redhat.com> Date: Mon, 25 Jul 2016 17:44:17 +0200 In-Reply-To: <1469453038-7991-1-git-send-email-imammedo@redhat.com> (Igor Mammedov's message of "Mon, 25 Jul 2016 15:23:58 +0200") Message-ID: <87y44pg1ta.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] fixup! fix qemu exit on memory hotplug when allocation fails at prealloc time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, ehabkost@redhat.com Igor Mammedov writes: > Signed-off-by: Igor Mammedov > --- > - add comment o exit(1) path > --- > util/oslib-posix.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/util/oslib-posix.c b/util/oslib-posix.c > index a60ac97..f2d4e9e 100644 > --- a/util/oslib-posix.c > +++ b/util/oslib-posix.c > @@ -356,6 +356,7 @@ void os_mem_prealloc(int fd, char *area, size_t memory, Error **errp) > > ret = sigaction(SIGBUS, &oldact, NULL); > if (ret) { > + /* Terminate QEMU since it can't recover from error */ > perror("os_mem_prealloc: failed to reinstall signal handler"); > exit(1); > } Thanks! My R-by stands, of course.