Spdk/lib/vhost
Jim Harris bab34df6ca vhost: split iovs which span hugepage boundaries
A virtio descriptor may specify a buffer that spans
a huge page boundary or even a vhost memory region.
So modify spdk_vhost_vring_desc_to_iov() to take this
into account.

While here, also change spdk_vhost_vring_desc_to_iov
to return int instead of bool.  int return with -1 is
most standard to indicate failure.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I71faefce0367dc9e44d70ea4429a28dd64f04c10

Reviewed-on: https://review.gerrithub.io/371756
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Piotr Pelpliński <piotr.pelplinski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
2017-07-31 13:10:52 -04:00
..
linux vhost: add copy of virtio headers 2017-03-23 13:51:04 -07:00
rte_vhost rte_vhost: added error log in vhost_user_set_features 2017-06-30 16:32:47 -04:00
Makefile vhost: removed task.h/task.c 2017-06-30 16:32:47 -04:00
test_plan.md test/vhost: Update test plan for vhost 2017-07-25 15:48:46 -04:00
vhost_blk.c vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
vhost_internal.h vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
vhost_iommu.c vhost_iommu: handle realloc() failure 2017-07-13 15:47:33 -04:00
vhost_iommu.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
vhost_rpc.c vhost: Make JSON-RPC parameter names as consistent as possible 2017-07-14 15:54:28 -04:00
vhost_scsi.c vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
vhost.c vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00