numam-dpdk/lib/librte_vhost
Adrian Moreno 5d9dc18e1b vhost: fix vring memory partially mapped
Only the mapping of the vring addresses is being ensured. This causes
errors when the vring size is larger than the IOTLB page size. E.g:
queue sizes > 256 for 4K IOTLB pages

Ensure the entire vring memory range gets mapped. Refactor duplicated
code for for IOTLB UPDATE and IOTLB INVALIDATE and add packed virtqueue
support.

Fixes: 09927b5249 ("vhost: translate ring addresses when IOMMU enabled")
Cc: stable@dpdk.org

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2019-10-07 15:00:57 +02:00
..
fd_man.c vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
fd_man.h vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
iotlb.c vhost: replace IOTLB license with SPDX tag 2019-08-05 16:06:11 +02:00
iotlb.h vhost: replace IOTLB license with SPDX tag 2019-08-05 16:06:11 +02:00
Makefile build: remove unnecessary large file support defines 2019-06-03 23:55:50 +02:00
meson.build lib: add reasons for components being disabled 2019-07-02 23:21:05 +02:00
rte_vdpa.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_vhost_crypto.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_vhost_version.map vhost: add API to set protocol features flags 2019-03-20 18:15:42 +01:00
rte_vhost.h vhost: add missing experimental flag 2019-10-07 15:00:57 +02:00
socket.c vhost: fix passing destroyed device to destroy callback 2019-04-19 14:51:54 +02:00
vdpa.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
vhost_crypto.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
vhost_user.c vhost: fix vring memory partially mapped 2019-10-07 15:00:57 +02:00
vhost_user.h vhost: remove unused function prototype 2019-01-18 09:47:26 +01:00
vhost.c vhost: protect vring access done by application 2019-10-07 15:00:57 +02:00
vhost.h vhost: add device op when notification to guest is sent 2019-10-07 15:00:53 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: simplify descriptor buffer prefetching 2019-06-13 23:54:29 +09:00