Re: [dpdk-dev] [PATCH] vfio: fix file descriptor leak in multi-process applications

2017-02-09 Thread Thomas Monjalon
> > When a secondary process wants access to the VFIO container file descriptor, > > the primary process calls vfio_get_container_fd() which always opens an > > entirely new file descriptor on /dev/vfio/vfio. > > However, once the file descriptor has been passed to the subprocess, it is > > effecti

Re: [dpdk-dev] [PATCH] vfio: fix file descriptor leak in multi-process applications

2017-02-09 Thread Burakov, Anatoly
> -Original Message- > From: Patrick MacArthur [mailto:patr...@patrickmacarthur.net] > Sent: Thursday, January 26, 2017 11:05 PM > To: dev@dpdk.org; Burakov, Anatoly > Cc: Patrick MacArthur > Subject: [PATCH] vfio: fix file descriptor leak in multi-process applications > > When a seconda

[dpdk-dev] [PATCH] vfio: fix file descriptor leak in multi-process applications

2017-01-26 Thread Patrick MacArthur
When a secondary process wants access to the VFIO container file descriptor, the primary process calls vfio_get_container_fd() which always opens an entirely new file descriptor on /dev/vfio/vfio. However, once the file descriptor has been passed to the subprocess, it is effectively duplicated, mea