Received: from eggs.gnu.org ([2001:4830:134:3::10]:37241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKlXR-0008NE-Lh for qemu-devel@nongnu.org; Sun, 17 Jan 2016 06:30:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKlXN-0006XS-2F for qemu-devel@nongnu.org; Sun, 17 Jan 2016 06:30:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKlXM-0006XO-Tk for qemu-devel@nongnu.org; Sun, 17 Jan 2016 06:30:25 -0500 Date: Sun, 17 Jan 2016 13:30:22 +0200 From: "Michael S. Tsirkin" Message-ID: <20160117132350-mutt-send-email-mst@redhat.com> References: <1452888764-60880-1-git-send-email-shesha@cisco.com> <1452888764-60880-2-git-send-email-shesha@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452888764-60880-2-git-send-email-shesha@cisco.com> Subject: Re: [Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shesha Sreenivasamurthy Cc: qemu-devel@nongnu.org On Fri, Jan 15, 2016 at 12:12:44PM -0800, Shesha Sreenivasamurthy wrote: > Send VHOST_USER_RESET_OWNER when the device is stopped. > > Signed-off-by: Shesha Sreenivasamurthy That's a bad commit log. A good one should describe why changes are made, not what they are (that can be seen from the change diff). The cover letter is no good for that, it should just give some introduction in case of a large patchset. I commented on the cover letter for now since that is where you put the motivation. > --- > hw/virtio/vhost.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c > index de29968..808184f 100644 > --- a/hw/virtio/vhost.c > +++ b/hw/virtio/vhost.c > @@ -1256,6 +1256,11 @@ void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev) > hdev->vq_index + i); > } > If rings keep going at this point then the index retrieved above will be wrong, and we will not be able to re-start the device. > + if (hdev->vhost_ops->vhost_reset_device(hdev) < 0) { > + fprintf(stderr, "vhost reset device %s failed\n", vdev->name); > + fflush(stderr); > + } > + Looks more or less like a revert of commit 12b8cbac3c8243b3dd485aaebb82547aefa06adb Author: Yuanhan Liu Date: Fri Nov 13 15:24:10 2015 +0800 vhost: don't send RESET_OWNER at stop If you still think it's a good idea, pls copy people signed on that patch. > vhost_log_put(hdev, true); > hdev->started = false; > hdev->log = NULL; > -- > 1.9.5 (Apple Git-50.3)