From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUB83-0007R6-Kn for qemu-devel@nongnu.org; Wed, 17 Sep 2014 05:02:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUB7t-0005FC-Nn for qemu-devel@nongnu.org; Wed, 17 Sep 2014 05:02:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUB7t-0005ET-6F for qemu-devel@nongnu.org; Wed, 17 Sep 2014 05:02:13 -0400 Date: Wed, 17 Sep 2014 11:33:22 +0300 From: "Michael S. Tsirkin" Message-ID: <20140917083322.GA10308@redhat.com> References: <54192136.2010409@huawei.com> <54193D51.6070503@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54193D51.6070503@huawei.com> Subject: Re: [Qemu-devel] vhost-user:is miss command VHOST_NET_SET_BACKEND? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Linhaifeng Cc: qemu-devel@nongnu.org, n.nikolaev@virtualopensystems.com, jerry.lilijun@huawei.com I guess it's a workaround, but I think it's an ugly one. Let's add this command properly. What's the best way to do this? A feature bit? Or just add a new command and assume remote ignores what it can't handle? Nikolay, docs/specs/vhost-user.txt seems silent on this aspect. Can you send a patch documenting it please? On Wed, Sep 17, 2014 at 03:50:41PM +0800, Linhaifeng wrote: > sorry it is not need to add VHOST_NET_SET_BACKEND.I found i can reset in VHOST_GET_VRING_BASE because before the backend cleanup it will send VHOST_GET_VRING_BASE. > > On 2014/9/17 13:50, Linhaifeng wrote: > > Hi, > > > > The VHOST_NET_SET_BACKEND could tell the user when the backend is created or destroyed.is usefull for the user but this command is lost in the protocol > > > > > > > >