From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH] vhost: postpone ring addresses translations at kick time only Date: Mon, 6 Nov 2017 19:58:52 +0800 Message-ID: <20171106115852.GD12931@yliu-home> References: <20171103155235.29869-1-maxime.coquelin@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, lei.a.yao@intel.com, mst@redhat.com, Thomas Monjalon To: Maxime Coquelin Return-path: Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by dpdk.org (Postfix) with ESMTP id F38731B2AC for ; Mon, 6 Nov 2017 12:59:00 +0100 (CET) Content-Disposition: inline In-Reply-To: <20171103155235.29869-1-maxime.coquelin@redhat.com> 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 Fri, Nov 03, 2017 at 04:52:35PM +0100, Maxime Coquelin wrote: > If multiple queue pairs are created but all are not used, the > device is never started, as unused queues aren't enabled and > their ring addresses aren't translated. The device is changed > to running state when all rings addresses are translated. > > This patch fixes this by postponning rings addresses translation > at kick time unconditionnaly, VHOST_USER_F_PROTOCOL_FEATURES > being negotiated or not. > > Reported-by: Lei Yao > Signed-off-by: Maxime Coquelin Acked-by: Yuanhan Liu --yliu