From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 39550B02; Mon, 6 Nov 2017 06:58:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 06 Nov 2017 06:58:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=EEQYtG0eat7EHSFK8p02pArbH0zgRZufHC2YqaPxWL0=; b=Wf0PTTkz fHvRKOEHIrqvQVQs5wkUvUuHYNvWfAWG44zR1vsmZ7jAWtoW1lxOsxkw7rn73d2k RbxqOGMz3gBkfX4pf25HJ7ceFjXBx0cvq3osNhjbNjboX4fc1Qhn3B/1sT5eg4BV n+1hkSccuqb6HBagVI6nKEQW/FSDvPwJ6+W1tVLMhPtgEArN/hEGmePf0KQSVqPI Pg60oPjEagu61bg/Z3JmMclB0wieTnKl1LPRAUCTkFA+dYHaW8anxWWCpCyeZj/X kgfvxgt5Cysj59bHUoaVhhzdJbM/J7pFUXNJSEjel+2QqhzMWEF9guthnYWrsLNp fE9DkqO37CVwNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=EEQYtG0eat7EHSFK8p02pArbH0zgR ZufHC2YqaPxWL0=; b=hiCJXex9SKwEc4mj2IRHIBXKrOkhQVQONFGL7iHpUW6aa /o9WO7Ezi0EKlOkhldGgqj8YkJX2cL691jtzfKxasJz5Baisrajrx4BEmXzy0ho+ 23ew/NLKdtv98eLpw1DV89bG32EpIjyp3C2z6SKeG5Q8fKRS0ZBUWk7l8ZPLqpN/ BV7BruX7mqs5VK4/VIehs+Md5G7Abraa5zN5RRXKdi/Ban/2LQbLAXLqCvPtZla4 OpO8Go8c8FpkibQx2ql1/wO3Q+On1EJyor23ji437nKHV+V59Bpasqcwq8aqELLZ +BFhUFMJ4kOca7pApQ1E7YrfQwWsVGSDhi8DV+qew== X-ME-Sender: Received: from yliu-home (unknown [222.64.173.197]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CCDC7FAC7; Mon, 6 Nov 2017 06:58:55 -0500 (EST) Date: Mon, 6 Nov 2017 19:58:52 +0800 From: Yuanhan Liu To: Maxime Coquelin Cc: dev@dpdk.org, lei.a.yao@intel.com, mst@redhat.com, Thomas Monjalon 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 Content-Disposition: inline In-Reply-To: <20171103155235.29869-1-maxime.coquelin@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-dev] [PATCH] vhost: postpone ring addresses translations at kick time only X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 11:59:01 -0000 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