From: Maxime Coquelin Subject: Re: [PATCH] vhost/crypto: handle virtually non-contiguous buffers Date: Wed, 16 May 2018 12:54:42 +0200 Message-ID: <3d4fc981-d177-bbc9-fb4f-34326ab4fedd@redhat.com> References: <20180510154122.85407-1-roy.fan.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Fan Zhang , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id 7F7C01B22A for ; Wed, 16 May 2018 12:54:44 +0200 (CEST) In-Reply-To: <20180510154122.85407-1-roy.fan.zhang@intel.com> Content-Language: en-US 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 05/10/2018 05:41 PM, Fan Zhang wrote: > This patch enables the handling of buffers non-contiguous in > virtual address space in the vhost_crypto. Instead of using > rte_vhost_va_from_guest_pa(), the host virtual address is > converted by vhost_iova_to_vva() for wider use cases. > > For copy mode, the copy length is limited to the chunck size, > next chuncks VAs being fetched afterward. > > Signed-off-by: Fan Zhang > --- > lib/librte_vhost/vhost_crypto.c | 201 ++++++++++++++++++++++++++-------------- > 1 file changed, 129 insertions(+), 72 deletions(-) Applied to dpdk-next-virtio. Thanks, Maxime