]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: move write protect handler out of mmio emulation function
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 18 Dec 2017 03:58:46 +0000 (11:58 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 22 Dec 2017 08:33:50 +0000 (16:33 +0800)
commit733fd934a258e50df6fea55fde37fbf3d1409b8b
tree7e580f30760a3152cc514ec4eccef92088c7ba59
parentea4b9252af363540988949991c713ed449d2312d
drm/i915/gvt: move write protect handler out of mmio emulation function

It's a bit confusing that page write protect handler is live in
mmio emulation handler. This moves it to stand alone gvt ops.

Also remove unnecessary check of write protected page access
in mmio read handler and cleanup handling of failsafe case.

v2: rebase

Reviewed-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/gtt.h
drivers/gpu/drm/i915/gvt/gvt.c
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mmio.c