From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 4625C5F62 for ; Fri, 2 Nov 2018 09:22:19 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CC9B85D697; Fri, 2 Nov 2018 08:22:18 +0000 (UTC) Received: from localhost (ovpn-116-180.ams2.redhat.com [10.36.116.180]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C108151DF5; Fri, 2 Nov 2018 08:21:44 +0000 (UTC) Date: Fri, 2 Nov 2018 09:21:42 +0100 From: Jens Freimann To: Maxime Coquelin Cc: dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com, jasowang@redhat.com, mst@redhat.com, wexu@redhat.com Message-ID: <20181102082142.ilqfcm6ztb3u37h7@jenstp.localdomain> References: <20181031102640.15377-1-maxime.coquelin@redhat.com> <20181031102640.15377-2-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181031102640.15377-2-maxime.coquelin@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 02 Nov 2018 08:22:19 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH v4 1/2] vhost: add packed ring support to vring base requests 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: Fri, 02 Nov 2018 08:22:20 -0000 On Wed, Oct 31, 2018 at 11:26:39AM +0100, Maxime Coquelin wrote: >For packed ring layout, we need save avail index and its wrap >counter value. At restore time, the used index and its wrap counter >are set to available's ones, as the ring procressing is stopped >at vring base get time. > >Signed-off-by: Maxime Coquelin >--- > lib/librte_vhost/vhost_user.c | 40 +++++++++++++++++++++++++++++------ > 1 file changed, 34 insertions(+), 6 deletions(-) > Reviewed-by: Jens Freimann