Received: from eggs.gnu.org ([2001:4830:134:3::10]:34802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7LkS-0002ZX-D9 for qemu-devel@nongnu.org; Thu, 17 Nov 2016 07:25:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7LkO-0003aG-Eb for qemu-devel@nongnu.org; Thu, 17 Nov 2016 07:25:00 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36554) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7LkO-0003ZQ-6A for qemu-devel@nongnu.org; Thu, 17 Nov 2016 07:24:56 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uAHCO0XU104687 for ; Thu, 17 Nov 2016 07:24:54 -0500 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 26s9sughna-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 17 Nov 2016 07:24:54 -0500 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 Nov 2016 12:24:52 -0000 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 418C11B08069 for ; Thu, 17 Nov 2016 12:27:06 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uAHCOnS544367942 for ; Thu, 17 Nov 2016 12:24:49 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uAHCOn20010317 for ; Thu, 17 Nov 2016 05:24:49 -0700 Date: Thu, 17 Nov 2016 13:24:47 +0100 From: Cornelia Huck In-Reply-To: <20161117105830.GH24138@stefanha-x1.localdomain> References: <1479333189-20082-1-git-send-email-stefanha@redhat.com> <1479333189-20082-2-git-send-email-stefanha@redhat.com> <20161117093118.798b49ea.cornelia.huck@de.ibm.com> <20161117105830.GH24138@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20161117132447.71885d6b.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 1/3] virtio: add missing vdev->broken check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Stefan Hajnoczi , Kevin Wolf , zhunxun@gmail.com, Fam Zheng , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Christian Borntraeger , Paolo Bonzini On Thu, 17 Nov 2016 10:58:30 +0000 Stefan Hajnoczi wrote: > On Thu, Nov 17, 2016 at 09:31:18AM +0100, Cornelia Huck wrote: > > On Wed, 16 Nov 2016 21:53:07 +0000 > > Stefan Hajnoczi wrote: > > > > > virtio_queue_notify_vq() checks vdev->broken before invoking the > > > handler, virtio_queue_notify_aio_vq() should too. > > > > > > Signed-off-by: Stefan Hajnoczi > > > --- > > > hw/virtio/virtio.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > Reviewed-by: Cornelia Huck > > > > I think this makes sense as a fix independent of your other patches. > > I'm not aware of an actual bug caused by this. virtio_queue_pop() > returns NULL when the device is broken. > > This is more for consistency than correctness, so I didn't add > qemu-stable, -rc1, or send it as a separate fix. Fair enough. It was more "we should add this patch even if we don't use the other patches in this series".