Christoph Hellwig 978cf586ac drm/i915/gvt: convert to use vfio_register_emulated_iommu_dev
This is straightforward conversion, the intel_vgpu already has a pointer
to the vfio_dev, which can be replaced with the embedded structure and
we can replace all the mdev_get_drvdata() with a simple container_of().

Based on an patch from Jason Gunthorpe.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220411141403.86980-29-hch@lst.de
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
2022-04-21 07:36:56 -04:00
..
2022-03-25 14:57:47 -07:00
2022-03-24 16:19:43 -07:00
2021-10-07 11:04:05 -07:00
2021-12-17 21:51:59 -08:00
2022-03-24 16:19:43 -07:00
2022-02-28 15:04:53 +01:00
2022-02-28 15:04:53 +01:00
2022-03-24 16:19:43 -07:00
2022-03-24 16:19:43 -07:00