numam-dpdk/lib/librte_vhost
Rich Lane ca67ed289a vhost: fix leak of fds and mmaps
The common vhost code only supported a single mmap per device. vhost-user
worked around this by saving the address/length/fd of each mmap after the end
of the rte_virtio_memory struct. This only works if the vhost-user code frees
dev->mem, since the common code is unaware of the extra info. The
VHOST_USER_RESET_OWNER message is one situation where the common code frees
dev->mem and leaks the fds and mappings. This happens every time I shut down a
VM.

The new code calls back into the implementation (vhost-user or vhost-cuse) to
clean up these resources.

The vhost-cuse changes are only compile tested.

Signed-off-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-02-19 16:13:32 +01:00
..
eventfd_link vhost: fix kernel module insertion 2015-11-24 21:34:11 +01:00
libvirt vhost: fix qemu shutdown 2015-09-24 14:57:36 +02:00
vhost_cuse vhost: fix leak of fds and mmaps 2016-02-19 16:13:32 +01:00
vhost_user vhost: fix leak of fds and mmaps 2016-02-19 16:13:32 +01:00
Makefile vhost: fix build dependency 2016-02-18 20:25:15 +01:00
rte_vhost_version.map vhost: cleanup unix socket 2015-06-30 17:49:08 +02:00
rte_virtio_net.h vhost: log used vring changes 2016-02-19 15:44:13 +01:00
vhost_rxtx.c vhost: log vring desc buffer changes 2016-02-19 15:46:46 +01:00
vhost-net.h vhost: fix leak of fds and mmaps 2016-02-19 16:13:32 +01:00
virtio-net.c vhost: fix leak of fds and mmaps 2016-02-19 16:13:32 +01:00
virtio-net.h vhost: implement cuse memory table 2015-02-24 01:38:14 +01:00