diff options
author | Alex Williamson <[email protected]> | 2024-06-06 21:52:07 -0600 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2024-06-12 15:40:39 -0600 |
commit | d71a989cf5d961989c273093cdff2550acdde314 (patch) | |
tree | 549d8e81b566d5cdfa3d50ce7bae886a2d183cd9 /net/unix/sysctl_net_unix.c | |
parent | aac6db75a9fc2c7a6f73e152df8f15101dda38e6 (diff) |
vfio/pci: Insert full vma on mmap'd MMIO fault
In order to improve performance of typical scenarios we can try to insert
the entire vma on fault. This accelerates typical cases, such as when
the MMIO region is DMA mapped by QEMU. The vfio_iommu_type1 driver will
fault in the entire DMA mapped range through fixup_user_fault().
In synthetic testing, this improves the time required to walk a PCI BAR
mapping from userspace by roughly 1/3rd.
This is likely an interim solution until vmf_insert_pfn_{pmd,pud}() gain
support for pfnmaps.
Suggested-by: Yan Zhao <[email protected]>
Link: https://lore.kernel.org/all/Zl6XdUkt%[email protected]/
Reviewed-by: Yan Zhao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions