drm/i915/gvt: Move vGPU type related code into gvt file
authorfred gao <fred.gao@intel.com>
Thu, 28 Sep 2017 03:03:02 +0000 (11:03 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Nov 2017 03:48:19 +0000 (11:48 +0800)
commitc5d71cb31723135dbaa54b32bf046342fe538210
tree9ee4bb4597fec3fa38652c3717675ff66f1428cc
parente2c43c0111d54d4857d052fcfca9f3f16bf1b1b2
drm/i915/gvt: Move vGPU type related code into gvt file

In this patch, all the vGPU type related code will be merged into
same gvt file and the common interface will be exposed to both
XenGT and KvmGT.

v2:
- remove the useless mdev_* gvt_ops.
  add get_gvt_attr ops for MPT module.
  intel_gvt_{init,cleanup}_vgpu_type_groups are initialized in
  gvt part. (Wang, Zhi)
- set gvt_vgpu_type_groups[i] to NULL. (Zhang,Xiong)

Signed-off-by: fred gao <fred.gao@intel.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/gvt.c
drivers/gpu/drm/i915/gvt/gvt.h