From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0RZ2-0005rc-8H for qemu-devel@nongnu.org; Thu, 04 Jun 2015 05:35:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0RYy-0006fw-6r for qemu-devel@nongnu.org; Thu, 04 Jun 2015 05:35:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0RYy-0006f5-1j for qemu-devel@nongnu.org; Thu, 04 Jun 2015 05:35:48 -0400 Message-ID: <55701BED.2090802@redhat.com> Date: Thu, 04 Jun 2015 17:35:41 +0800 From: Jason Wang MIME-Version: 1.0 References: <1432800194-1192-1-git-send-email-thibaut.collet@6wind.com> <20150529131209.GJ8598@stefanha-thinkpad.redhat.com> <20150602103429.GF23987@stefanha-thinkpad.redhat.com> <556ECBF1.8020702@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] net: fix queue's purge on VM stop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Thibaut Collet , qemu-devel , Vincenzo Maffione , Stefan Hajnoczi , Giuseppe Lettieri , Luigi Rizzo On 06/03/2015 09:40 PM, Stefan Hajnoczi wrote: > On Wed, Jun 3, 2015 at 10:42 AM, Jason Wang wrote: >> >> On 06/03/2015 03:56 PM, Thibaut Collet wrote: >>> Hi, >>> >>> thanks for your point, I did not notice the problem of the lost of ARP >>> announce by discarding the message. >>> So I must rewrite my patch to define a queue to transmit the ARP >>> announce to the guest. Is it the proper solution? >>> >> Please have a look at VIRTIO_NET_F_GUEST_ANNOUNCE. It can notify guest >> after migration to let it to send arp announce. Recent linux driver has >> this support. > This looks like a useful feature. > > I couldn't see a place in the code where qemu_announce_self() skips > virtio-net NICs that have this feature bit enabled. Does this mean > these NICs will send announces twice (once from the guest and once > from QEMU)? Yes, for simplicity, the changes were limited to virito-net only. > > My hope was that with the virtio-net announce feature the > qemu_announce_self() function would skip the NIC. > > Stefan Yes and will try to post patch to do this. Thanks