mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/i915/gvt: Disable access to stolen memory as a guest
am: 868a747c77
Change-Id: I54d69f72f872aabcfd6a36fd8c9abbb7827846b3
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user