]> 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)
commitc5f89f4b7527f3fbaeef2655b31c2f94da3959a9
treeb9bf0ec28c84f7d14212cc0d645cad75c107c2c6
parent8259f8d77f6a767c6afa656a2e8b6425c4cf77e9
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: 82c55d3233a9 ("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