aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenfs
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/xenfs')
-rw-r--r--drivers/xen/xenfs/privcmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/xen/xenfs/privcmd.c b/drivers/xen/xenfs/privcmd.c
index 2eb04c842511..88474d460d82 100644
--- a/drivers/xen/xenfs/privcmd.c
+++ b/drivers/xen/xenfs/privcmd.c
@@ -380,8 +380,9 @@ static int privcmd_mmap(struct file *file, struct vm_area_struct *vma)
380 if (xen_feature(XENFEAT_auto_translated_physmap)) 380 if (xen_feature(XENFEAT_auto_translated_physmap))
381 return -ENOSYS; 381 return -ENOSYS;
382 382
383 /* DONTCOPY is essential for Xen as copy_page_range is broken. */ 383 /* DONTCOPY is essential for Xen because copy_page_range doesn't know
384 vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY; 384 * how to recreate these mappings */
385 vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY | VM_PFNMAP;
385 vma->vm_ops = &privcmd_vm_ops; 386 vma->vm_ops = &privcmd_vm_ops;
386 vma->vm_private_data = NULL; 387 vma->vm_private_data = NULL;
387 388