drm/i915/gvt: Change from vfio_group_(un)pin_pages to vfio_(un)pin_pages
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 11 May 2022 19:12:59 +0000 (13:12 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 11 May 2022 19:12:59 +0000 (13:12 -0600)
commit5eb20a78c032da9c5d00090953c1bed6c4e3f143
tree7e780d1dee4e14c77921c9ecb68c16eecd51a06f
parentc6250ffbacc5989a5db3b9acce34b93570938f60
drm/i915/gvt: Change from vfio_group_(un)pin_pages to vfio_(un)pin_pages

Use the existing vfio_device versions of vfio_(un)pin_pages(). There is no
reason to use a group interface here, kvmgt has easy access to a
vfio_device.

Delete kvmgt_vdev::vfio_group since these calls were the last users.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Zhi Wang <zhi.a.wang@intel.com>
Link: https://lore.kernel.org/r/5-v4-8045e76bf00b+13d-vfio_mdev_no_group_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c