]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: clear ggtt entries when destroy vgpu
authorZhipeng Gong <zhipeng.gong@intel.com>
Mon, 17 Sep 2018 07:45:08 +0000 (15:45 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 18 Sep 2018 02:39:44 +0000 (10:39 +0800)
commit231239dea073c982b37afb3a7a7e5bc5c661b374
treeb9bf0ec28c84f7d14212cc0d645cad75c107c2c6
parent4b227e087fc7286950ed29607ad8e992712ea719
drm/i915/gvt: clear ggtt entries when destroy vgpu

When one vgpu is destroyed, its ggtt entries are not cleared.
This patch clears ggtt entries to avoid information leak.

v2: add 'Fixes' tag (Zhenyu)

Fixes: 417e47df0f06 ("drm/i915/gvt: vGPU graphics memory virtualization")
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
Reviewed-by: Hang Yuan <hang.yuan@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/vgpu.c