]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc4a221cc1913fdd9aa1cfda411fe5c61ac1cfeb
tree6e18cf81fde2855e3393018daf2d06cd1b4a6ba3
parent3a5fe26b20e7a00ea9e2d7549dfc6f401f4929e5
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