]> 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)
commit3a4a3277f7f739c34d4091e76fc6cd1739ce3245
tree7e580f30760a3152cc514ec4eccef92088c7ba59
parent42abe262df6276e5a83c428ad13e3d5cfbf03dec
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