aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vfio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/pci/vfio_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
index 6968b7232232..6d369fe9d30b 100644
--- a/drivers/vfio/pci/vfio_pci.c
+++ b/drivers/vfio/pci/vfio_pci.c
@@ -461,7 +461,7 @@ static int vfio_pci_mmap(void *device_data, struct vm_area_struct *vma)
461 } 461 }
462 462
463 vma->vm_private_data = vdev; 463 vma->vm_private_data = vdev;
464 vma->vm_flags |= (VM_IO | VM_RESERVED); 464 vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
465 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); 465 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
466 466
467 phys = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff; 467 phys = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff;