From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH 1/2] vhost: fix overflow on shadow used ring Date: Thu, 26 Jul 2018 17:00:14 +0800 Message-ID: <20180726090014.GB22416@debian> References: <20180726013721.30200-1-tiwei.bie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: lei.a.yao@intel.com To: maxime.coquelin@redhat.com, zhihong.wang@intel.com, dev@dpdk.org Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 74122F72 for ; Thu, 26 Jul 2018 11:00:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180726013721.30200-1-tiwei.bie@intel.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 Thu, Jul 26, 2018 at 09:37:20AM +0800, Tiwei Bie wrote: > The shadow used ring's size is the same as the vq's size, > so we shouldn't try more than "vq size" times. Besides, > the element pointed by avail->idx isn't available to the > device, so we will return error when try "vq size" times. > > Fixes: 24e4844048e1 ("vhost: unify Rx mergeable and non-mergeable paths") > Fixes: a922401f35cc ("vhost: add Rx support for packed ring") > > Signed-off-by: Tiwei Bie Series applied to dpdk-next-virtio/master.