]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Return error at the failure of finding page_track
authorXiong Zhang <xiong.y.zhang@intel.com>
Mon, 5 Mar 2018 22:07:28 +0000 (06:07 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 6 Mar 2018 06:49:38 +0000 (14:49 +0800)
commitae70862b30a8989b07c5d28774ac699090b84f0a
tree563f68f59a70d5cfdff8ab9c60b636b25594a3db
parent6ee22bd5b1f672e79213555165c4a817e355484b
drm/i915/gvt: Return error at the failure of finding page_track

In XenGT, ioreq copy is used to trap mmio write and ppgtt write. Both
of them are memory write, ioreq handler couldn't distinguish them. So
ioreq handler probe the ppgtt write handler, if it is succuess, this
ioreq is ppgtt write, otherwise it is mmio write.

So ppgtt write handler should return an error at the failure of finding
page track, it is fatal to implement ioreq handler in XenGT.

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