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
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)
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
3 matches
Mail list logo