drm/i915/gvt: create an idle vGPU
authorPing Gao <ping.a.gao@intel.com>
Wed, 29 Mar 2017 16:36:39 +0000 (00:36 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 30 Mar 2017 05:34:07 +0000 (13:34 +0800)
commitafe04fbe6c522e73d5cc61a6660cce0e78630786
tree7722a11d3c7d1dd8b5e6866409dffe161af41bd8
parent39d467c2b71ccb4a55af830c117fafe0525caa12
drm/i915/gvt: create an idle vGPU

vGPU resource is allocated by scheduler. To account for non-allocated
free cycles, we create an idle vGPU as the placeholder similar to idle task
concept, which is useful to handle some corner cases in scheduling policy.

Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.c
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/vgpu.c