]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe73f5dfcfe66c7ed039a0225142d10df5c17632
tree7fa0d8e950f29a30990a180926fdc31d74cec78a
parent099ae5920084c7cd8bc3f5805e0a404cbe094277
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