|
@@ -461,7 +461,7 @@ static int vfio_pci_mmap(void *device_data, struct vm_area_struct *vma)
|
|
}
|
|
}
|
|
|
|
|
|
vma->vm_private_data = vdev;
|
|
vma->vm_private_data = vdev;
|
|
- vma->vm_flags |= (VM_IO | VM_RESERVED);
|
|
|
|
|
|
+ vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
|
|
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
|
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
|
|
|
|
|
phys = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff;
|
|
phys = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff;
|