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 EE3364F9B for ; Wed, 31 Oct 2018 11:26:53 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 32B2C58E20; Wed, 31 Oct 2018 10:26:53 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-50.ams2.redhat.com [10.36.112.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id C877B1724E; Wed, 31 Oct 2018 10:26:42 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, jfreimann@redhat.com, tiwei.bie@intel.com, zhihong.wang@intel.com, jasowang@redhat.com, mst@redhat.com, wexu@redhat.com Cc: Maxime Coquelin Date: Wed, 31 Oct 2018 11:26:38 +0100 Message-Id: <20181031102640.15377-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 31 Oct 2018 10:26:53 +0000 (UTC) Subject: [dpdk-dev] [PATCH v4 0/2] vhost: packed ring support completion 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: Wed, 31 Oct 2018 10:26:54 -0000 In this v4, it restores back to only save last avail index and its wrap counter value at get time, and restore both used and avail indexes to avail values at set time. The change compared to v1 is that wrap counter value is saved into bit 15, so that it is consistent with the event suppression structure format. Initial series ading packed ring layout support to the vhost library was missing the save and restore of the wrap counters and indexs on vring base requests used for migration. First patch saves/restores the used and avail indexes and their wrap counters values into/from the vring state num field. Maxime Coquelin (2): vhost: add packed ring support to vring base requests vhost: advertize packed ring layout support lib/librte_vhost/vhost.h | 3 ++- lib/librte_vhost/vhost_user.c | 40 +++++++++++++++++++++++++++++------ 2 files changed, 36 insertions(+), 7 deletions(-) -- 2.17.2