Received: from eggs.gnu.org ([2001:4830:134:3::10]:57947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHqTV-0000wp-Uj for qemu-devel@nongnu.org; Tue, 28 Jun 2016 06:42:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHqTQ-0001dW-Pw for qemu-devel@nongnu.org; Tue, 28 Jun 2016 06:42:36 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53466 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHqTQ-0001d3-Ky for qemu-devel@nongnu.org; Tue, 28 Jun 2016 06:42:32 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5SAcwmE015892 for ; Tue, 28 Jun 2016 06:42:31 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 23sjvxnypm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Jun 2016 06:42:30 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Jun 2016 11:42:29 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id CB9DC1B0804B for ; Tue, 28 Jun 2016 11:43:40 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5SAgQBC16777524 for ; Tue, 28 Jun 2016 10:42:26 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u5SAgOjg010753 for ; Tue, 28 Jun 2016 04:42:24 -0600 Date: Tue, 28 Jun 2016 12:42:23 +0200 From: Cornelia Huck In-Reply-To: <1467102269-11112-1-git-send-email-imammedo@redhat.com> References: <1467102269-11112-1-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160628124223.0ad1f7c3.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] virtio: abort on fatal error instead of just exiting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, mst@redhat.com On Tue, 28 Jun 2016 10:24:29 +0200 Igor Mammedov wrote: > replace mainly useless exit(1) on fatal error path with > abort(), so that it would be possible to generate core > dump, that could be used to analyse cause of problem. > > Signed-off-by: Igor Mammedov > --- > hw/virtio/virtio.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) There had been https://marc.info/?l=qemu-devel&m=146046754901035&w=2 which instead marks devices as broken; but I don't think there has been progress since then. Switching to abort() might be a stop-gap solution so we can at least analyze what went bad, so Acked-by: Cornelia Huck