From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZopMm-0001S3-J2 for qemu-devel@nongnu.org; Wed, 21 Oct 2015 05:07:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZopMl-0004IP-PA for qemu-devel@nongnu.org; Wed, 21 Oct 2015 05:07:28 -0400 Received: from mga09.intel.com ([134.134.136.24]:25503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZopMl-0004I2-K3 for qemu-devel@nongnu.org; Wed, 21 Oct 2015 05:07:27 -0400 From: Yuanhan Liu Date: Wed, 21 Oct 2015 17:07:17 +0800 Message-Id: <1445418438-24244-4-git-send-email-yuanhan.liu@linux.intel.com> In-Reply-To: <1445418438-24244-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1445418438-24244-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [Qemu-devel] [PATCH v2 4/5] Revert "vhost-user: Send VHOST_RESET_OWNER on vhost stop" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Yuanhan Liu , Luke Gorrie , "Michael S. Tsirkin" Don't send VHOST_RESET_OWNER, for as Michael stated: Because we need to get the state from remote after stop. RESET_OWNER discards that, so we can't resume the VM. This reverts commit 294ce717e0f212ed0763307f3eab72b4a1bdf4d0. Cc: Luke Gorrie Cc: Michael S. Tsirkin Signed-off-by: Yuanhan Liu --- hw/net/vhost_net.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 804f5c9..95da5f8 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -293,13 +293,6 @@ static void vhost_net_stop_one(struct vhost_net *net, &file); assert(r >= 0); } - } else if (net->nc->info->type == NET_CLIENT_OPTIONS_KIND_VHOST_USER) { - for (file.index = 0; file.index < net->dev.nvqs; ++file.index) { - const VhostOps *vhost_ops = net->dev.vhost_ops; - int r = vhost_ops->vhost_call(&net->dev, VHOST_RESET_OWNER, - NULL); - assert(r >= 0); - } } if (net->nc->info->poll) { net->nc->info->poll(net->nc, true); -- 1.9.0