Received: from eggs.gnu.org ([2001:4830:134:3::10]:38821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRfrZ-00032H-Uw for qemu-devel@nongnu.org; Mon, 25 Jul 2016 09:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRfrW-0005ux-Mx for qemu-devel@nongnu.org; Mon, 25 Jul 2016 09:24:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRfrW-0005us-Hg for qemu-devel@nongnu.org; Mon, 25 Jul 2016 09:24:02 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 12E93C016037 for ; Mon, 25 Jul 2016 13:24:02 +0000 (UTC) From: Igor Mammedov Date: Mon, 25 Jul 2016 15:23:58 +0200 Message-Id: <1469453038-7991-1-git-send-email-imammedo@redhat.com> In-Reply-To: <1469008443-72059-1-git-send-email-imammedo@redhat.com> References: <1469008443-72059-1-git-send-email-imammedo@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, armbru@redhat.com, ehabkost@redhat.com 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); } -- 2.7.4