[dpdk-dev] [PATCH] vhost: fix leak of fds and mmaps

2016-01-07 Thread Yuanhan Liu
On Tue, Jan 05, 2016 at 02:14:09PM -0800, Rich Lane wrote: > 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 > de

[dpdk-dev] [PATCH] vhost: fix leak of fds and mmaps

2016-01-07 Thread Xie, Huawei
On 1/7/2016 10:27 AM, Yuanhan Liu wrote: > On Tue, Jan 05, 2016 at 02:14:09PM -0800, Rich Lane wrote: >> 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. Thi

[dpdk-dev] [PATCH] vhost: fix leak of fds and mmaps

2016-01-05 Thread Rich Lane
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 VHO