drm/i915/gvt: hold reference of VFIO group during opening of vgpu
authorYan Zhao <yan.y.zhao@intel.com>
Fri, 13 Mar 2020 03:10:25 +0000 (23:10 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Apr 2020 08:26:48 +0000 (16:26 +0800)
commit776d95b768e664efdc9f5cc078b981a006d3bff4
tree8a5482d17497402a34d67029f7baf227bcd4e8ee
parentbcad588dea538a4fc173d16a90a005536ec8dbf2
drm/i915/gvt: hold reference of VFIO group during opening of vgpu

hold reference count of the VFIO group for each vgpu at vgpu opening and
release the reference at vgpu releasing.

Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Reviewed-by: Zhenyu Wang<zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang<zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200313031025.7936-1-yan.y.zhao@intel.com
drivers/gpu/drm/i915/gvt/kvmgt.c