drm/i915/gvt: combine access to consecutive guest context pages
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 15 Apr 2020 03:58:27 +0000 (23:58 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 15 Apr 2020 06:02:55 +0000 (14:02 +0800)
commite5e113079efdffb9a39e16a88d109c3d47efdfcc
tree40b2d8b4f0cbb6d0a8f3ea0d388ad53665e3b30a
parent6c2f73e26a253ae827d9754572bfee4a912e559c
drm/i915/gvt: combine access to consecutive guest context pages

IOVA(GPA)s of context pages are checked and if they are consecutive,
read/write them together in one intel_gvt_hypervisor_read_gpa() /
intel_gvt_hypervisor_write_gpa().

Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200415035827.26476-1-yan.y.zhao@intel.com
drivers/gpu/drm/i915/gvt/scheduler.c