drm/i915: guest i915 notification for Intel GVT-g
authorZhiyuan Lv <zhiyuan.lv@intel.com>
Fri, 28 Aug 2015 07:41:18 +0000 (15:41 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 2 Sep 2015 09:46:55 +0000 (11:46 +0200)
commit650da34c4af12921e0148bbc0dba7419d7776189
treecf3a7dfc87c77c8330bff50e96466108b7513086
parent532beabf343d16d269491c63ed4590e5a675ea2b
drm/i915: guest i915 notification for Intel GVT-g

When i915 drivers run inside a VM with Intel GVT-g, some explicit
notifications are needed from guest to host device model through PV
INFO page write. The notifications include:

PPGTT create
PPGTT destroy

They are used for the shadow implementation of PPGTT. Intel GVT-g
needs to write-protect the guest pages of PPGTT, and clear the write
protection when they end their life cycle.

v2:
- Use lower_32_bits()/upper_32_bits() for qword operations;
- Remove the notification of guest context creation/destroy;

Signed-off-by: Zhiyuan Lv <zhiyuan.lv@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c