]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/kvmgt: Support setting dma map for huge pages
authorChangbin Du <changbin.du@intel.com>
Tue, 15 May 2018 02:35:42 +0000 (10:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jul 2018 02:34:28 +0000 (10:34 +0800)
commite31be5450884dff12febe742af0621d0c5a8e5c9
tree211fe11c64288815a2094b18cbc01c69ccfe7bc0
parentc013ed9f21b87cc6d2babd5bf1fa6bddbdc40441
drm/i915/kvmgt: Support setting dma map for huge pages

To support huge gtt, we need to support huge pages in kvmgt first.
This patch adds a 'size' param to the intel_gvt_mpt::dma_map_guest_page
API and implements it in kvmgt.

v2: rebase.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/hypercall.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mpt.h