drm/i915/gvt: remove the vgpu->released and its sanity check
authorZhi Wang <zhi.a.wang@intel.com>
Fri, 4 Nov 2022 14:56:50 +0000 (14:56 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 17 Nov 2022 06:07:09 +0000 (14:07 +0800)
commit2d3bc8754360d0557faaa295a3b4404d0473a2d4
treea682078c518b4fd30e51f52d9dc4cf8e8b4dd2d7
parenta34985dcacdf31892510571c29b38330272c76f4
drm/i915/gvt: remove the vgpu->released and its sanity check

The life cycle of a vGPU, which is represented by a vfio_device, has been
managed by the VFIO core logic. Remove the vgpu->released, which was used
for a sanity check on the removal path of the vGPU instance. The sanity
check has already been covered in the VFIO core logic.

Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: intel-gvt-dev@lists.freedesktop.org
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20221104145652.1570-1-zhi.a.wang@intel.com
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c