From: Pavel Fedin Subject: Re: [PATCH 0/4 for 2.3] vhost-user live migration support Date: Tue, 15 Dec 2015 15:24:48 +0300 Message-ID: <00b601d13733$97e063a0$c7a12ae0$@samsung.com> References: <000001d133ed$b2446eb0$16cd4c10$@samsung.com> <20151211094934.GX29571@yliu-dev.sh.intel.com> <001c01d133fd$d3a7d870$7af78950$@samsung.com> <20151214035842.GB18437@pxdev.xzpeter.org> <20151215082324.GG29571@yliu-dev.sh.intel.com> <007f01d13715$042a0a80$0c7e1f80$@samsung.com> <20151215100548.GD32243@pxdev.xzpeter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, 'Victor Kaplansky' To: 'Thibaut Collet' , 'Peter Xu' Return-path: Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id F0FFCA6A for ; Tue, 15 Dec 2015 13:24:51 +0100 (CET) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NZE005ZGFTEN890@mailout1.w1.samsung.com> for dev@dpdk.org; Tue, 15 Dec 2015 12:24:50 +0000 (GMT) In-reply-to: Content-language: ru List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello! > After a migration, to avoid network outage, the guest must announce = its new location to the L2 layer, typically with a GARP. Otherwise = requests sent to > the guest arrive to the old host until a ARP request is sent (after 30 = seconds) or the guest sends some data. > QEMU implementation of self announce after a migration with a vhost = backend is the following: > - If the VIRTIO_GUEST_ANNOUNCE feature has been negotiated the guest = sends automatically a GARP. > - Else if the vhost backend implements VHOST_USER_SEND_RARP this = request is sent to the vhost backend. When this message is received the = vhost backend > must act as it receives a RARP from the guest (purpose of this RARP is = to update switches' MAC->port maaping as a GARP). This RARP is a false = one, > created by the vhost backend, > - Else nothing is done and we have a network outage until a ARP is = sent or the guest sends some data. But what is qemu_announce_self() then? It's just unconditionally = triggered after migration, but indeed sends some strange thing. > VIRTIO_GUEST_ANNOUNCE feature is negotiated if: > - the vhost backend announces the support of this feature. Maybe QEMU = can be updated to support unconditionnaly this feature Wrong. I tried to unconditionally enforce it in qemu (my guest does = support it), and the link stopped working at all. I don't understand = why. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia