diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-11-11 17:39:12 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-01-11 14:31:00 -0500 |
commit | 8d3eaea24609c7cd6fb0e6471f46a52f9e5d0202 (patch) | |
tree | cdd4f32c737ac24a49e0899f21bd73687435af62 /drivers/xen | |
parent | ab31523c2fcac557226bac72cbdf5fafe01f9a26 (diff) |
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 <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/gntdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
564 | 564 | ||
565 | vma->vm_ops = &gntdev_vmops; | 565 | vma->vm_ops = &gntdev_vmops; |
566 | 566 | ||
567 | vma->vm_flags |= VM_RESERVED|VM_DONTCOPY|VM_DONTEXPAND; | 567 | vma->vm_flags |= VM_RESERVED|VM_DONTCOPY|VM_DONTEXPAND|VM_PFNMAP; |
568 | 568 | ||
569 | vma->vm_private_data = map; | 569 | vma->vm_private_data = map; |
570 | map->vma = vma; | 570 | map->vma = vma; |