From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJZTO-0005lf-C3 for qemu-devel@nongnu.org; Mon, 18 Aug 2014 22:48:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJZTI-0003Ai-23 for qemu-devel@nongnu.org; Mon, 18 Aug 2014 22:48:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJZTH-0003Ad-Qk for qemu-devel@nongnu.org; Mon, 18 Aug 2014 22:48:27 -0400 Message-ID: <53F2BAF1.7050101@redhat.com> Date: Tue, 19 Aug 2014 10:48:17 +0800 From: Jason Wang MIME-Version: 1.0 References: <1408355491-42089-1-git-send-email-jasowang@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vhost_net: start/stop guest notifiers properly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: William Dauchy Cc: zhangjie14@huawei.com, QEMU Developers , mst@redhat.com On 08/18/2014 09:20 PM, William Dauchy wrote: > On Mon, Aug 18, 2014 at 11:51 AM, Jason Wang wrote: >> err: >> @@ -254,16 +254,16 @@ void vhost_net_stop(VirtIODevice *dev, NetClientState *ncs, >> VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus); >> int i, r; >> >> + for (i = 0; i < total_queues; i++) { >> + vhost_net_stop_one(tap_get_vhost_net(ncs[i].peer), dev); >> + } >> + >> r = k->set_guest_notifiers(qbus->parent, total_queues * 2, false); >> if (r < 0) { >> fprintf(stderr, "vhost guest notifier cleanup failed: %d\n", r); >> fflush(stderr); >> } >> assert(r >= 0); >> - >> - for (i = 0; i < total_queues; i++) { >> - vhost_net_stop_one(tap_get_vhost_net(ncs[i].peer), dev); >> - } >> } > since > ed8b4af Refactor virtio-net to use generic get_vhost_net > get_vhost_net is used instead of tap_get_vhost_net > > Could you rebase your patch to facilitate tests or is it intentional? Not intentional, my tree is out of date. I will rebase the patch. Thanks for pointing this out. > > Thanks,