Re: [dpdk-dev] [PATCH v2 4/7] vhost: translate iovas at vectors fill time

2018-06-27 Thread Maxime Coquelin
On 06/25/2018 12:31 PM, Tiwei Bie wrote: On Mon, Jun 25, 2018 at 09:19:34AM +0200, Maxime Coquelin wrote: On 06/25/2018 04:21 AM, Tiwei Bie wrote: On Sat, Jun 23, 2018 at 09:11:24AM +0200, Maxime Coquelin wrote: [...] @@ -293,7 +314,8 @@ fill_vec_buf(struct virtio_net *dev, struct vhost_vi

Re: [dpdk-dev] [PATCH v2 4/7] vhost: translate iovas at vectors fill time

2018-06-25 Thread Tiwei Bie
On Mon, Jun 25, 2018 at 09:19:34AM +0200, Maxime Coquelin wrote: > On 06/25/2018 04:21 AM, Tiwei Bie wrote: > > On Sat, Jun 23, 2018 at 09:11:24AM +0200, Maxime Coquelin wrote: [...] > > > @@ -293,7 +314,8 @@ fill_vec_buf(struct virtio_net *dev, struct > > > vhost_virtqueue *vq, > > > static inl

Re: [dpdk-dev] [PATCH v2 4/7] vhost: translate iovas at vectors fill time

2018-06-25 Thread Maxime Coquelin
On 06/25/2018 04:21 AM, Tiwei Bie wrote: On Sat, Jun 23, 2018 at 09:11:24AM +0200, Maxime Coquelin wrote: This patch aims at simplifying the desc to mbuf and mbuf to desc copy functions. It performs the iova to hva translations at vectors fill time. Doing this, in case desc buffer isn't cont

Re: [dpdk-dev] [PATCH v2 4/7] vhost: translate iovas at vectors fill time

2018-06-24 Thread Tiwei Bie
On Sat, Jun 23, 2018 at 09:11:24AM +0200, Maxime Coquelin wrote: > This patch aims at simplifying the desc to mbuf and mbuf to desc > copy functions. It performs the iova to hva translations at > vectors fill time. > > Doing this, in case desc buffer isn't contiguous in hva space, > it gets split

[dpdk-dev] [PATCH v2 4/7] vhost: translate iovas at vectors fill time

2018-06-23 Thread Maxime Coquelin
This patch aims at simplifying the desc to mbuf and mbuf to desc copy functions. It performs the iova to hva translations at vectors fill time. Doing this, in case desc buffer isn't contiguous in hva space, it gets split into multiple vectors. Signed-off-by: Maxime Coquelin --- lib/librte_vhost