Received: from eggs.gnu.org ([2001:4830:134:3::10]:58578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwCKs-0006j1-6r for qemu-devel@nongnu.org; Mon, 17 Oct 2016 14:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwCKo-0007AY-UI for qemu-devel@nongnu.org; Mon, 17 Oct 2016 14:08:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwCKo-0007AL-Kx for qemu-devel@nongnu.org; Mon, 17 Oct 2016 14:08:26 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9HI48ra129850 for ; Mon, 17 Oct 2016 14:08:25 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 264ym9c76e-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 17 Oct 2016 14:08:25 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 17 Oct 2016 19:08:22 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id BD09F2190056 for ; Mon, 17 Oct 2016 19:07:37 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9HI8Khc11600318 for ; Mon, 17 Oct 2016 18:08:20 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9HI8KJQ027280 for ; Mon, 17 Oct 2016 12:08:20 -0600 References: <1476706440-112198-1-git-send-email-borntraeger@de.ibm.com> <87r37e99pq.fsf@dusky.pond.sub.org> From: Christian Borntraeger Date: Mon, 17 Oct 2016 20:08:19 +0200 MIME-Version: 1.0 In-Reply-To: <87r37e99pq.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Message-Id: <7ad99772-87ab-5a52-e8b2-199aa7350ba6@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH/RFC] vl: add no-panic option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Paolo Bonzini , qemu-devel@nongnu.org On 10/17/2016 07:17 PM, Markus Armbruster wrote: > Christian Borntraeger writes: > >> Some testcase will trigger a guest panic state. For testing purposes >> it can be useful to exit QEMU anyway. >> >> Signed-off-by: Christian Borntraeger >> --- >> qemu-options.hx | 9 +++++++++ >> vl.c | 6 ++++++ >> 2 files changed, 15 insertions(+) >> >> diff --git a/qemu-options.hx b/qemu-options.hx >> index 01f01df..ee6d3d0 100644 >> --- a/qemu-options.hx >> +++ b/qemu-options.hx >> @@ -3301,6 +3301,15 @@ This allows for instance switching to monitor to commit changes to the >> disk image. >> ETEXI >> >> +DEF("no-panic", 0, QEMU_OPTION_no_panic, \ >> + "-no-panic exit QEMU also in guest panic state\n", QEMU_ARCH_ALL) >> +STEXI >> +@item -no-panic >> +@findex -no-panic >> +Exit QEMU on guest panic instead of keeping it alive. This allows for >> +instance running tests that are known to panic at the end. >> +ETEXI >> + >> DEF("loadvm", HAS_ARG, QEMU_OPTION_loadvm, \ >> "-loadvm [tag|id]\n" \ >> " start right away with a saved state (loadvm in monitor)\n", > > Thank you for adding QEMU's 139-th option. Are you sure it needs to be > an option of its own, and can't be added to an existing QemuOpts option > group? Your welcome, let me know if I should come up with more :-) Just kidding, that is why I added RFC to the patch. Paolo suggested to default to exit on panic unless -no-shutdown is given and I want to go that path.