]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: introuduce intel_vgpu_reset_gtt() to reset gtt
authorChangbin Du <changbin.du@intel.com>
Fri, 13 Jan 2017 03:15:57 +0000 (11:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 13 Jan 2017 07:05:38 +0000 (15:05 +0800)
commit21cd565645e8c2f4b96c85066dbe03c4fda29095
treec73b6ebbc6015e7a5fbc95f5eea89488adf936c3
parent1fe566421e858b543dbe2a4fc0ee1c8b09291a2c
drm/i915/gvt: introuduce intel_vgpu_reset_gtt() to reset gtt

This patch introduces a new function intel_vgpu_reset_gtt() to reset
the all GTT related status, including GGTT, PPGTT, scratch page. This
function can free all shadowed PPGTT, clear all GGTT entry, and clear
scratch page to all zero. After this, we can ensure no gtt related
information can be leakaged from one VM to anothor one when assign
vgpu instance across different VMs (not simultaneously).

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/gtt.h