]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: don't rely on guest PPGTT entry to free old shadow data
authorBing Niu <bing.niu@intel.com>
Mon, 7 Nov 2016 02:44:36 +0000 (10:44 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Nov 2016 07:39:46 +0000 (15:39 +0800)
commit50ca41b8e7f33b29ba5461bc601e6df683f39af3
treee662d2830a63900086fbe2637c176a7aa83c3682
parent8789a0932352a6a2f63be4f41062c861ad67f3d3
drm/i915/gvt: don't rely on guest PPGTT entry to free old shadow data

On guest writing a PPGTT entry, if it contains value and the old
entry is valid, gvt will read it and find & free the corresponding
old data for it. However, with the KVM write protection provided
by page_track, the guest entry will be written with new value
before gvt handling. To avoid that, we should use the shadow
entry instead.

Signed-off-by: Bing Niu <bing.niu@intel.com>
Signed-off-by: Jike Song <jike.song@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c