]> 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)
commit4fafba2d73fcaf1b433c26e753a98ad4b231754a
tree7e580f30760a3152cc514ec4eccef92088c7ba59
parent90551a1296d4dbe0dccc4c3cb5e57e7f2c929009
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