drm/i915/gvt: switch to user vfio_group_pin/upin_pages
authorYan Zhao <yan.y.zhao@intel.com>
Fri, 13 Mar 2020 03:11:51 +0000 (23:11 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Apr 2020 08:30:17 +0000 (16:30 +0800)
commitec7301d5146c9abe8aaf6e16e420ea3951018503
tree7bc30027f46d3b5a46bc3d3430cb74da1973f6ea
parentb59b2a3ee567e5a30688e148556ae33a3196bc9d
drm/i915/gvt: switch to user vfio_group_pin/upin_pages

substitute vfio_pin_pages() and vfio_unpin_pages() with
vfio_group_pin_pages() and vfio_group_unpin_pages(), so that
it will not go through looking up, checking, referencing,
dereferencing of VFIO group in each call.

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/20200313031151.8042-1-yan.y.zhao@intel.com
drivers/gpu/drm/i915/gvt/kvmgt.c