drm/i915/gvt: Handle orphan dmabuf_objs
authorTina Zhang <tina.zhang@intel.com>
Thu, 23 Nov 2017 08:26:37 +0000 (16:26 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 4 Dec 2017 03:24:34 +0000 (11:24 +0800)
commitdfb6ae4e14bd6542ee6caa8f661f269c94e19a9f
tree0bd6378ed5d75945d776c4ed2299aba88a447793
parente546e281d33d1fc275651aa06f0659045db67e68
drm/i915/gvt: Handle orphan dmabuf_objs

dmabuf_obj's destruction relys on GEM release operation, which is managed
in i915 driver. And there is a time window between vgpu's destruction and
its dmabuf_objs' destruction. This patch is to free the orphan dmabuf_objs
correctly after the vgpu passes away.

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/dmabuf.c