From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH v9 15/15] vhost: advertize packed ring layout support Date: Mon, 9 Jul 2018 15:11:10 +0800 Message-ID: <20180709071109.GB5900@debian> References: <20180706070722.2043-1-maxime.coquelin@redhat.com> <20180706070722.2043-16-maxime.coquelin@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: zhihong.wang@intel.com, jfreimann@redhat.com, dev@dpdk.org, mst@redhat.com, jasowang@redhat.com, wexu@redhat.com To: Maxime Coquelin Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A93E158C4 for ; Mon, 9 Jul 2018 09:11:25 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180706070722.2043-16-maxime.coquelin@redhat.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 Fri, Jul 06, 2018 at 09:07:22AM +0200, Maxime Coquelin wrote: > Signed-off-by: Maxime Coquelin > --- > lib/librte_vhost/vhost.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h > index 760a09c0d..9b0ebb754 100644 > --- a/lib/librte_vhost/vhost.h > +++ b/lib/librte_vhost/vhost.h > @@ -275,7 +275,8 @@ struct vring_packed_desc_event { > (1ULL << VIRTIO_RING_F_EVENT_IDX) | \ > (1ULL << VIRTIO_NET_F_MTU) | \ > (1ULL << VIRTIO_F_IN_ORDER) | \ > - (1ULL << VIRTIO_F_IOMMU_PLATFORM)) > + (1ULL << VIRTIO_F_IOMMU_PLATFORM) | \ > + (1ULL << VIRTIO_F_RING_PACKED)) > > > struct guest_page { > -- > 2.14.4 > I didn't apply this patch, because the packed ring support isn't complete, e.g. when doing live migration, the wrap counter isn't synced. We can advertise this feature bit when it's fully supported.