Received: from eggs.gnu.org ([2001:4830:134:3::10]:48855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3PwR-00069l-0i for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:28:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3PwM-0005sf-OX for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:28:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3PwM-0005sH-KK for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:28:14 -0400 Date: Fri, 12 Jun 2015 16:28:10 +0200 From: "Michael S. Tsirkin" Message-ID: <20150612162720-mutt-send-email-mst@redhat.com> References: <20150610180013-mutt-send-email-mst@redhat.com> <55791F29.6060000@redhat.com> <5579228E.1040705@redhat.com> <20150611123433-mutt-send-email-mst@redhat.com> <20150611141135-mutt-send-email-mst@redhat.com> <557A9075.5030409@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <557A9075.5030409@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 Fri, Jun 12, 2015 at 03:55:33PM +0800, Jason Wang wrote: > > > On 06/11/2015 08:13 PM, Michael S. Tsirkin wrote: > > On Thu, Jun 11, 2015 at 02:10:48PM +0200, Thibaut Collet wrote: > >> I am not sure to understand your remark: > >> > >>> 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. > >> Could you confirm rarp can be sent by backend when the > >> VHOST_USER_SET_VRING_KICK message is received by the backend ? > > No - the time to send pakets is when you start processing > > the rings. > > > > And the time to do that is when you detect a kick on > > an eventfd, not when said fd is set. > > > > Probably not. What if guest is only doing receiving? Clarification: the kick can be on any VQs. In your example, guest kicks after adding receive buffers. > In this case, you > won't detect any kick if you don't send the rarp first.