drm/i915/gvt: clear the vGPU reset logic
authorPing Gao <ping.a.gao@intel.com>
Tue, 21 Feb 2017 07:52:56 +0000 (15:52 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 23 Feb 2017 09:32:17 +0000 (17:32 +0800)
commitda9cc8de22aa6bd6ed51c406432d599ab520a6e3
tree6e18cf81fde2855e3393018daf2d06cd1b4a6ba3
parentbab059304314e127cf4a5330c6bd5a71fd27c022
drm/i915/gvt: clear the vGPU reset logic

Releasing shadow PPGTT pages is not enough when vGPU reset, the
guest page table tracking data should has same life-cycle with
all the shadow PPGTT pages; Otherwise there is no chance to
re-shadow the PPGTT pages without free the guest page table
tracking data.

This patch clear the PPGTT reset logic and make the vGPU reset in
working order.

v2: refactor some logic to avoid code duplicated.
v3: remove useless macro and add comments from Christophe.
v4: keep reset logic in reset function.

Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c