vfio: remap_pfn_range() sets all those flags...
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 May 2013 16:33:31 +0000 (12:33 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:46:41 +0000 (12:46 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/vfio/pci/vfio_pci.c

index ac3725440d648ab4f3efefda246be390b6be643e..c5179e269df64ade2de20a384b6732a6922c9bcf 100644 (file)
@@ -499,7 +499,6 @@ static int vfio_pci_mmap(void *device_data, struct vm_area_struct *vma)
        }
 
        vma->vm_private_data = vdev;
-       vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
        vma->vm_pgoff = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff;