Received: from eggs.gnu.org ([2001:4830:134:3::10]:51576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmzMi-0000Yu-13 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 04:28:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmzMd-0002iF-Ne for qemu-devel@nongnu.org; Thu, 22 Sep 2016 04:28:18 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56532 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmzMd-0002hw-IE for qemu-devel@nongnu.org; Thu, 22 Sep 2016 04:28:15 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8M8ONqq143989 for ; Thu, 22 Sep 2016 04:28:14 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 25knvsrg3a-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 22 Sep 2016 04:28:14 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 22 Sep 2016 09:28:12 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id E78EC1B08070 for ; Thu, 22 Sep 2016 09:30:01 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u8M8S9TU14156270 for ; Thu, 22 Sep 2016 08:28:09 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u8M8S9wg012909 for ; Thu, 22 Sep 2016 02:28:09 -0600 Date: Thu, 22 Sep 2016 10:28:07 +0200 From: Cornelia Huck In-Reply-To: <20160922101456.13f3b6eb@bahia.lab.toulouse-stg.fr.ibm.com> References: <147446363181.4880.18104448248886932114.stgit@bahia> <57E331B5.1080308@huawei.com> <20160922084310.0d8c4ac4@bahia.lab.toulouse-stg.fr.ibm.com> <33183CC9F5247A488A2544077AF19020B03D523B@SZXEMA503-MBS.china.huawei.com> <20160922092153.21aad3c5@bahia.lab.toulouse-stg.fr.ibm.com> <33183CC9F5247A488A2544077AF19020B03D5338@SZXEMA503-MBS.china.huawei.com> <20160922101456.13f3b6eb@bahia.lab.toulouse-stg.fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160922102807.3c3ecbac.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: "Gonglei (Arei)" , "qemu-devel@nongnu.org" , Kevin Wolf , "Michael S. Tsirkin" , Jason Wang , Max Reitz , "Aneesh Kumar K.V" , Stefan Hajnoczi , Paolo Bonzini On Thu, 22 Sep 2016 10:14:56 +0200 Greg Kurz wrote: > On Thu, 22 Sep 2016 07:38:29 +0000 > "Gonglei (Arei)" wrote: > > I saw virtio_error() only handle the virtio 1.0 device, the legacy virtio device may > > still stuck, am I right? > > > > The DEVICE_NEEDS_RESET bit was introduced by the virtio 1.0 specification. > > http://docs.oasis-open.org/virtio/virtio/v1.0/cs04/virtio-v1.0-cs04.html#x1-100001 > > Yes, the legacy device will stay stuck since the broken flag is set. Yes, I fear there's nothing we can do to handle legacy devices gracefully. If one broken device doesn't drag down the rest of the machine with it, it's still a net win, I think.