From: Al Viro Date: Sat, 11 May 2013 16:33:31 +0000 (-0400) Subject: vfio: remap_pfn_range() sets all those flags... X-Git-Tag: v3.11-rc1~166^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a47df1518efb9b5e9c5fc7cc7300e40f945a1f33;p=profile%2Fivi%2Fkernel-x86-ivi.git vfio: remap_pfn_range() sets all those flags... Signed-off-by: Al Viro --- diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index ac37254..c5179e2 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -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;