From: Maxime Coquelin Subject: Re: [PATCH 3/6] net/virtio-user: do not reset owner when driver resets Date: Tue, 30 Oct 2018 11:21:49 +0100 Message-ID: <8a22482a-ed0b-caed-9877-e54306c9c80e@redhat.com> References: <20181029052808.16520-1-tiwei.bie@intel.com> <20181029052808.16520-4-tiwei.bie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: stephen@networkplumber.org, stable@dpdk.org To: Tiwei Bie , zhihong.wang@intel.com, dev@dpdk.org Return-path: In-Reply-To: <20181029052808.16520-4-tiwei.bie@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/29/18 6:28 AM, Tiwei Bie wrote: > When driver resets the device, virtio-user just needs to send > GET_VRING_BASE messages to stop the vhost backend, and that's > what QEMU does. With this change, we won't need to set owner > when starting virtio-user device anymore. This will help us to > get rid of below error message on startup: > > vhost_kernel_ioctl(): VHOST_SET_OWNER failed: Device or resource busy > > Fixes: bce7e9050f9b ("net/virtio-user: fix start with kernel vhost") > Fixes: 0d6a8752ac9d ("net/virtio-user: fix crash as features change") > Cc: stable@dpdk.org > > Signed-off-by: Tiwei Bie > --- > .../net/virtio/virtio_user/virtio_user_dev.c | 22 ++++++++++++------- > 1 file changed, 14 insertions(+), 8 deletions(-) Reviewed-by: Maxime Coquelin Thanks, Maxime