Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80252038 authored by Chris Wilson's avatar Chris Wilson Committed by android-build-merger
Browse files

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

am: 868a747c

Change-Id: I54d69f72f872aabcfd6a36fd8c9abbb7827846b3
parents 3b003578 868a747c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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");