drm/i915/gvt: map pfn for PTE entry in kvm
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 9 Feb 2017 03:38:01 +0000 (11:38 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 9 Feb 2017 06:17:14 +0000 (14:17 +0800)
commitb86dc6ed20f1543121757da1a77c0f52121d8bf1
tree0cafd2416403847bdf98f3ec9762f07fd47eaa15
parent5de6bd4c23babc6a00fcd7dc7c90705c9d0ec69e
drm/i915/gvt: map pfn for PTE entry in kvm

When host i915 iommu enabled, gvt needs to use a mapped pfn in PTE entry
So before kvm returns the pfn, map this pfn and return the mapped address
which is so called iova.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c