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)
commit7759ca3aac79648d01c9edcb3b00503c02bec2f5
treeb9bf0ec28c84f7d14212cc0d645cad75c107c2c6
parenta1ac5f0943019bfd76345fe05a42cbc400da685c
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: 2707e4446688 ("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