- Update Xen patches to 3.3-rc5 and c/s 1157.
[linux-flexiantxendom0-3.2.10.git] / drivers / gpu / drm / i915 / i915_gem.c
index e55badb..a27cacf 100644 (file)
@@ -1172,6 +1172,17 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
        return 0;
 }
 
+#ifdef CONFIG_XEN
+int i915_gem_mmap(struct file *filp, struct vm_area_struct *vma)
+{
+       int ret = drm_gem_mmap(filp, vma);
+
+       pgprot_val(vma->vm_page_prot) |= _PAGE_IOMAP;
+
+       return ret;
+}
+#endif
+
 /**
  * i915_gem_fault - fault a page into the GTT
  * vma: VMA in question