From patchwork Thu May 28 12:21:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 478165 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Yxwon-0005d7-6n for mharc-qemu-devel@gnu.org; Thu, 28 May 2015 08:21:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxwoh-0005Q5-QG for qemu-devel@nongnu.org; Thu, 28 May 2015 08:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxwoc-0007yc-Qi for qemu-devel@nongnu.org; Thu, 28 May 2015 08:21:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxwoc-0007yJ-MJ for qemu-devel@nongnu.org; Thu, 28 May 2015 08:21:38 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 65209BF9DE for ; Thu, 28 May 2015 12:21:38 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-60.ams2.redhat.com [10.36.116.60]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4SCLaqs009331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 28 May 2015 08:21:37 -0400 Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id F19093046034; Thu, 28 May 2015 14:21:35 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Thu, 28 May 2015 14:21:27 +0200 Message-Id: <1432815695-31687-2-git-send-email-armbru@redhat.com> In-Reply-To: <1432815695-31687-1-git-send-email-armbru@redhat.com> References: <1432815695-31687-1-git-send-email-armbru@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: pbonzini@redhat.com Subject: [Qemu-devel] [PATCH 1/9] vl: Report failure to sandbox at most once X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2015 12:21:45 -0000 It's reported once per -sandbox on. Stop on the first failure, like we do for other options. Not fixed: "-sandox on -sandbox off" should leave the sandbox off. It doesn't. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 15bccc4..07a890f 100644 --- a/vl.c +++ b/vl.c @@ -3786,7 +3786,7 @@ int main(int argc, char **argv, char **envp) exit(1); } - if (qemu_opts_foreach(qemu_find_opts("sandbox"), parse_sandbox, NULL, 0)) { + if (qemu_opts_foreach(qemu_find_opts("sandbox"), parse_sandbox, NULL, 1)) { exit(1); }