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 8DB0C1B4AA for ; Thu, 29 Nov 2018 14:21:59 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ECCED307D863; Thu, 29 Nov 2018 13:21:58 +0000 (UTC) Received: from ktraynor.remote.csb (ovpn-117-230.ams2.redhat.com [10.36.117.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F7711001F50; Thu, 29 Nov 2018 13:21:54 +0000 (UTC) From: Kevin Traynor To: Tiwei Bie Cc: Maxime Coquelin , dpdk stable Date: Thu, 29 Nov 2018 13:20:12 +0000 Message-Id: <20181129132128.7609-12-ktraynor@redhat.com> In-Reply-To: <20181129132128.7609-1-ktraynor@redhat.com> References: <20181129132128.7609-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 29 Nov 2018 13:21:59 +0000 (UTC) Subject: [dpdk-stable] patch 'vhost: fix IOVA access for packed ring' has been queued to stable release 18.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2018 13:21:59 -0000 Hi, FYI, your patch has been queued to stable release 18.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/08/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Kevin Traynor --- >>From 8b5b2dc3c24c53e7c657ae18a9baabc4f8261855 Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Tue, 6 Nov 2018 14:40:21 +0800 Subject: [PATCH] vhost: fix IOVA access for packed ring [ upstream commit 30affaeebc5655793622370d9d64695d9f785670 ] We should apply for RO access when receiving packets from the VM and apply for RW access when sending packets to the VM. Fixes: a922401f35cc ("vhost: add Rx support for packed ring") Fixes: ae999ce49dcb ("vhost: add Tx support for packed ring") Signed-off-by: Tiwei Bie Reviewed-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 8ad30c94a..5e1a1a727 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -599,5 +599,5 @@ reserve_avail_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, buf_vec, &vec_idx, &buf_id, &len, - VHOST_ACCESS_RO) < 0)) + VHOST_ACCESS_RW) < 0)) return -1; @@ -1504,5 +1504,5 @@ virtio_dev_tx_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, buf_vec, &nr_vec, &buf_id, &dummy_len, - VHOST_ACCESS_RW) < 0)) + VHOST_ACCESS_RO) < 0)) break; -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-29 13:11:35.324538200 +0000 +++ 0011-vhost-fix-IOVA-access-for-packed-ring.patch 2018-11-29 13:11:34.000000000 +0000 @@ -1,14 +1,15 @@ -From 30affaeebc5655793622370d9d64695d9f785670 Mon Sep 17 00:00:00 2001 +From 8b5b2dc3c24c53e7c657ae18a9baabc4f8261855 Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Tue, 6 Nov 2018 14:40:21 +0800 Subject: [PATCH] vhost: fix IOVA access for packed ring +[ upstream commit 30affaeebc5655793622370d9d64695d9f785670 ] + We should apply for RO access when receiving packets from the VM and apply for RW access when sending packets to the VM. Fixes: a922401f35cc ("vhost: add Rx support for packed ring") Fixes: ae999ce49dcb ("vhost: add Tx support for packed ring") -Cc: stable@dpdk.org Signed-off-by: Tiwei Bie Reviewed-by: Maxime Coquelin