vhost/crypto: handle virtually non-contiguous buffers
authorFan Zhang <roy.fan.zhang@intel.com>
Thu, 10 May 2018 15:41:22 +0000 (16:41 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 17 May 2018 10:29:05 +0000 (12:29 +0200)
commit3c79609fda7cba51835c5f76e1bf4a454c653ff2
tree486a7f1a77a2145a95bbb199c700d4f2c707e346
parent2017bc33561af8e9880f077cef541ea947a06de0
vhost/crypto: handle virtually non-contiguous buffers

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 chunk size,
next chunks VAs being fetched afterward.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_crypto.c