From: Jeremy Fitzhardinge Date: Thu, 11 Nov 2010 22:39:12 +0000 (-0800) Subject: xen/gntdev: add VM_PFNMAP to vma X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d3eaea24609c7cd6fb0e6471f46a52f9e5d0202;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git xen/gntdev: add VM_PFNMAP to vma These pages are from other domains, so don't have any local PFN. VM_PFNMAP is the closest concept Linux has to this. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index cfe063372aa4..fa6355a97081 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -564,7 +564,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) vma->vm_ops = &gntdev_vmops; - vma->vm_flags |= VM_RESERVED|VM_DONTCOPY|VM_DONTEXPAND; + vma->vm_flags |= VM_RESERVED|VM_DONTCOPY|VM_DONTEXPAND|VM_PFNMAP; vma->vm_private_data = map; map->vma = vma;