]> git.karo-electronics.de Git - linux-beck.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)
commit9baf0920b5d8e4e4ea302cb954168e06cf838d63
treee662d2830a63900086fbe2637c176a7aa83c3682
parent11840e2fff3fb0f90ab8d56f4ba7d3712a82c08f
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