drm/i915/gvt: Factor out intel_vgpu_{get, put}_ppgtt_mm interface
authorChangbin Du <changbin.du@intel.com>
Tue, 30 Jan 2018 11:19:46 +0000 (19:19 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 6 Mar 2018 05:19:16 +0000 (13:19 +0800)
commite6e9c46fd2351a07f31b3bf3101c57170c13aeab
tree5ef8619496b1f4697c79e31e88bdc661336f4ad8
parenta143cef7dbefc1cb9853d990c18b16347ecceb39
drm/i915/gvt: Factor out intel_vgpu_{get, put}_ppgtt_mm interface

Factor out these two interfaces so we can kill some duplicated code in
scheduler.c.

v2:
  - rename to intel_vgpu_{get,put}_ppgtt_mm
  - refine handle_g2v_notification

Signed-off-by: Changbin Du <changbin.du@intel.com>
Reviewed-by: Zhi Wang <zhi.a.wang@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/handlers.c
drivers/gpu/drm/i915/gvt/scheduler.c