drm/i915/gvt: Disable access to stolen memory as a guest

am: 868a747c77

Change-Id: I54d69f72f872aabcfd6a36fd8c9abbb7827846b3
This commit is contained in:
Chris Wilson
2017-03-15 02:26:46 +00:00
committed by android-build-merger

View File

@@ -415,6 +415,11 @@ int i915_gem_init_stolen(struct drm_device *dev)
mutex_init(&dev_priv->mm.stolen_lock);
if (intel_vgpu_active(dev_priv)) {
DRM_INFO("iGVT-g active, disabling use of stolen memory\n");
return 0;
}
#ifdef CONFIG_INTEL_IOMMU
if (intel_iommu_gfx_mapped && INTEL_INFO(dev)->gen < 8) {
DRM_INFO("DMAR active, disabling use of stolen memory\n");