Received: from eggs.gnu.org ([2001:4830:134:3::10]:37329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2zsf-0005ve-20 for qemu-devel@nongnu.org; Thu, 11 Jun 2015 06:38:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2zsb-0001Kt-QG for qemu-devel@nongnu.org; Thu, 11 Jun 2015 06:38:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2zsb-0001Kp-Kb for qemu-devel@nongnu.org; Thu, 11 Jun 2015 06:38:37 -0400 Date: Thu, 11 Jun 2015 12:38:31 +0200 From: "Michael S. Tsirkin" Message-ID: <20150611123433-mutt-send-email-mst@redhat.com> References: <1433943783-20125-1-git-send-email-thibaut.collet@6wind.com> <1433943783-20125-3-git-send-email-thibaut.collet@6wind.com> <20150610173321-mutt-send-email-mst@redhat.com> <20150610180013-mutt-send-email-mst@redhat.com> <55791F29.6060000@redhat.com> <5579228E.1040705@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5579228E.1040705@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 2/2] vhost user: Add RARP injection for legacy guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: Thibaut Collet , qemu-devel , Stefan Hajnoczi On Thu, Jun 11, 2015 at 01:54:22PM +0800, Jason Wang wrote: > > > On 06/11/2015 01:49 PM, Thibaut Collet wrote: > > > Yes, but still need a mechanism to notify the backend of migration > > > completion from qemu side if GUEST_ANNOUNCE is not negotiated. > > > > backend is aware of a connection with the guest (with the feature > > negociation) and can send a rarp. This rarp will be always sent by the > > backend when a VM is launched (first start or live migration > > completion) if the GUEST_ANOUNCE is not supported. > > In this case the issue is solved without done everything by QEMU. > > The issue is during migration guest network is still active. So sending > rarp too early in the destination (e.g during VM is launched) may > confuse the switch. We want it to be sent exactly when the migration is > completed in destination. It needs to be sent when backend is activated by guest kick (in case of virtio 1, it's possible to use DRIVER_OK for this). This does not happen when VM still runs on source. > > If sending a rarp message on the start of te VM is not accceptable, we > > must provide a mechanism similar of the one I have implemented. The > > message content can be empty as the backend is able to create the rarp > > message. > > Yes.