numam-dpdk/lib/librte_vhost
Maxime Coquelin af53db4867 vhost: flush IOTLB cache on new mem table handling
IOTLB entries contain the host virtual address of the guest
pages. When receiving a new VHOST_USER_SET_MEM_TABLE request,
the previous regions get unmapped, so the IOTLB entries, if any,
will be invalid. It does cause the vhost-user process to
segfault.

This patch introduces a new function to flush the IOTLB cache,
and call it as soon as the backend handles a VHOST_USER_SET_MEM
request.

Fixes: 69c90e98f4 ("vhost: enable IOMMU support")
Cc: stable@dpdk.org

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
2018-08-05 01:47:47 +02:00
..
fd_man.c vhost: fix typo in comment 2018-05-14 22:31:03 +01:00
fd_man.h vhost: fix dead lock on closing in server mode 2018-05-14 22:29:59 +01:00
iotlb.c vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
iotlb.h vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
Makefile vhost/crypto: fix build without cryptodev 2018-04-17 12:36:40 +02:00
meson.build vhost/crypto: add public function implementation 2018-04-14 00:43:30 +02:00
rte_vdpa.h vhost: support selective datapath 2018-04-14 00:40:21 +02:00
rte_vhost_crypto.h vhost/crypto: add public function implementation 2018-04-14 00:43:30 +02:00
rte_vhost_version.map lib: clear experimental version tag in linker scripts 2018-05-14 03:37:28 +02:00
rte_vhost.h vhost: support host notifier 2018-06-15 09:49:39 +02:00
socket.c vhost: advertise support in-order feature 2018-07-03 01:35:58 +02:00
vdpa.c vhost: support selective datapath 2018-04-14 00:40:21 +02:00
vhost_crypto.c vhost/crypto: use function to access mbuf private area 2018-07-13 23:14:41 +02:00
vhost_user.c vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
vhost_user.h vhost: support host notifier 2018-06-15 09:49:39 +02:00
vhost.c vhost: add notification for packed ring 2018-07-10 23:19:29 +02:00
vhost.h vhost: add notification for packed ring 2018-07-10 23:19:29 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: remove unused variable 2018-08-02 04:41:49 +02:00