drm/i915/gvt: pass a struct intel_vgpu to the vfio read/write helpers
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Apr 2022 14:13:55 +0000 (16:13 +0200)
committerZhi Wang <zhi.a.wang@intel.com>
Thu, 21 Apr 2022 11:36:56 +0000 (07:36 -0400)
commit7f11e6893ff01b63820a368851ca389293603dbe
tree2c5838a5e87a5257f7c2a61e3fa98343b169fe22
parent4456641232e2c1b1eb7d179449c5800b3ce9e9c1
drm/i915/gvt: pass a struct intel_vgpu to the vfio read/write helpers

Pass the structure we actually care about instead of deriving it from
the mdev_device in the lower level code.

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-27-hch@lst.de
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c