]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: set shadow entry to scratch page while p2m failed
authorXiaoguang Chen <xiaoguang.chen@intel.com>
Tue, 21 Mar 2017 02:54:21 +0000 (10:54 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 21 Mar 2017 03:15:40 +0000 (11:15 +0800)
commit84102b35ad2381514c5d6f5e138ae54f3e43598a
treef5af204f7d665391560240b340d61a7b95fdc453
parentd0bf9c4ddc0c7a7233432e00eafc788401ca1048
drm/i915/gvt: set shadow entry to scratch page while p2m failed

Sometimes guest driver will only update partial of the GGTT entry then
access it. In this situation a failure will happen while translating
the gpa to hpa.
Now in this situation we let the corresponding shadow entry pointing
to a scratch page.

Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Xiaoguang Chen <xiaoguang.chen@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c