xen/gntdev: add VM_PFNMAP to vma
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 11 Nov 2010 22:39:12 +0000 (14:39 -0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 11 Jan 2011 19:31:00 +0000 (14:31 -0500)
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 <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c

index cfe063372aa414014e903caee63ed573d183f153..fa6355a97081b008da3666204031645ab3d55447 100644 (file)
@@ -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;