From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2018 02:00:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,404,1526367600"; d="scan'208";a="60821580" Received: from debian.sh.intel.com (HELO debian) ([10.67.104.228]) by orsmga006.jf.intel.com with ESMTP; 26 Jul 2018 02:00:30 -0700 Date: Thu, 26 Jul 2018 17:00:14 +0800 From: Tiwei Bie To: maxime.coquelin@redhat.com, zhihong.wang@intel.com, dev@dpdk.org Cc: lei.a.yao@intel.com Message-ID: <20180726090014.GB22416@debian> References: <20180726013721.30200-1-tiwei.bie@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180726013721.30200-1-tiwei.bie@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Subject: Re: [dpdk-dev] [PATCH 1/2] vhost: fix overflow on shadow used ring 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: Thu, 26 Jul 2018 09:00:48 -0000 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.