Received: from eggs.gnu.org ([2001:4830:134:3::10]:33133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmfK4-0005yA-NE for qemu-devel@nongnu.org; Wed, 21 Sep 2016 07:04:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmfJz-00055A-7Y for qemu-devel@nongnu.org; Wed, 21 Sep 2016 07:04:16 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmfJy-00054m-Ut for qemu-devel@nongnu.org; Wed, 21 Sep 2016 07:04:11 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8LB2kPx067679 for ; Wed, 21 Sep 2016 07:04:10 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 25k6ckuayc-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 21 Sep 2016 07:04:09 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Sep 2016 12:04:07 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id F1E0417D8068 for ; Wed, 21 Sep 2016 12:06:02 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u8LB43x925297154 for ; Wed, 21 Sep 2016 11:04:04 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u8LB43EH022686 for ; Wed, 21 Sep 2016 07:04:03 -0400 Date: Wed, 21 Sep 2016 13:04:02 +0200 From: Cornelia Huck In-Reply-To: <1474382978-26310-1-git-send-email-stefanha@redhat.com> References: <1474382978-26310-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160921130402.2ace8303.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH v4 0/9] virtio: avoid exit() when device enters invalid states List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" , Fam Zheng On Tue, 20 Sep 2016 15:49:29 +0100 Stefan Hajnoczi wrote: > v4: > * Rebase to qemu.git/master > * Use "unsigned int" instead of "unsigned" in virtqueue_undo_map_desc() [Cornelia] > FWIW, any unchanged or only trivially-rebased patch retains my r-b or a-b. > v3: > * Patch 1: Fix typo and clarify commit description [Markus] > * Use virtio_set_status() instead of open coding assignment [Cornelia] > * Add live migration > > v2: > * Add VIRTIO_CONFIG_S_NEEDS_RESET notification for VIRTIO 1.0 [Cornelia] > (Note I've sent a Linux virtio_config.h patch to get the constant added to > the headers.) > * Split int -> unsigned int change into separate commit [Fam] > * Fix double "index" typo in commit description [Fam] > > The virtio code calls exit() when the device enters an invalid state. This > means invalid vring indices and descriptor chains kill the VM. See the patch > descriptions for why this is a bad thing. > > When the virtio device is in the broken state calls to virtqueue_pop() and > friends will pretend the virtqueue is empty. This means the device will become > isolated from guest activity until it is reset again. > > Stefan Hajnoczi (9): > virtio: fix stray tab character > virtio: stop virtqueue processing if device is broken > virtio: migrate vdev->broken flag > virtio: handle virtqueue_map_desc() errors > virtio: handle virtqueue_get_avail_bytes() errors > virtio: use unsigned int for virtqueue_get_avail_bytes() index > virtio: handle virtqueue_read_next_desc() errors > virtio: handle virtqueue_num_heads() errors > virtio: handle virtqueue_get_head() errors > > hw/virtio/virtio.c | 232 +++++++++++++++++++++++++++++++++++---------- > include/hw/virtio/virtio.h | 3 + > 2 files changed, 184 insertions(+), 51 deletions(-) >