[dpdk-dev] [PATCH 1/3] vfio: Added hot removal feature for vfio

2015-08-07 Thread Burakov, Anatoly
Hi Harpal, > I think maintaining a ref count of groups will solve this problem. Yes, refcounting seems like the best way to solve this problem. > Additionally, I have found a bug in existing design in case of multiple > devices of same group. > <...> > Therefore, I will provide a fix?for

[dpdk-dev] [PATCH 1/3] vfio: Added hot removal feature for vfio

2015-08-04 Thread Harpal Singh
From: Harpal Singh This patch will add a new API i.e. pci_vfio_unmap_resource. It will basically cleanup all the vfio resources allocated for a device. cleanup includes :- 1) removing vfio_res from vfio_res_list 2) unmap mapped bars 3) close device fd 4) close group fd 5)

[dpdk-dev] [PATCH 1/3] vfio: Added hot removal feature for vfio

2015-08-04 Thread Burakov, Anatoly
Hi Harpal, > This patch will add a new API i.e. pci_vfio_unmap_resource. > It will basically cleanup all the vfio resources allocated for a device. > cleanup includes :- > 1) removing vfio_res from vfio_res_list > 2) unmap mapped bars > 3) close device fd > 4) close group fd > 5) free vfio_res