kvm/vfio: Store the struct file in the kvm_vfio_group
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 4 May 2022 19:14:40 +0000 (16:14 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 13 May 2022 16:14:19 +0000 (10:14 -0600)
commitd55d9e7a4572182701ed0b62313b4f22e544e226
tree7fa0d8e950f29a30990a180926fdc31d74cec78a
parent73b0565f19a8fbc18dcf4b9b5c26d1a47a69ab24
kvm/vfio: Store the struct file in the kvm_vfio_group

Following patches will change the APIs to use the struct file as the handle
instead of the vfio_group, so hang on to a reference to it with the same
duration of as the vfio_group.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-v3-f7729924a7ea+25e33-vfio_kvm_no_group_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
virt/kvm/vfio.c