drm/i915: Add new vGPU cap info bit VGT_CAPS_HUGE_GTT
authorChangbin Du <changbin.du@intel.com>
Tue, 8 May 2018 09:07:05 +0000 (17:07 +0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 5 Jun 2018 13:57:01 +0000 (16:57 +0300)
commit52b2416ceb72e8f757eb56de5a98ade04d9b062d
tree7cb2033bcadfeb82d0cdc1bb1b7b05d26946b03e
parent6ceb7277173597eeed8d635e08db51e35235ab21
drm/i915: Add new vGPU cap info bit VGT_CAPS_HUGE_GTT

This adds a new vGPU cap info bit VGT_CAPS_HUGE_GTT, which is to detect
whether the host supports shadowing of huge gtt pages. If host does
support it, remove the page sizes restriction for vGPU.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1525770425-5373-1-git-send-email-changbin.du@intel.com
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_pvinfo.h
drivers/gpu/drm/i915/i915_vgpu.h