diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2020-04-28 21:12:20 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2020-05-18 17:53:29 +0200 |
commit | 11c4cd07ba111a09f49625f9e4c851d83daf0a22 (patch) | |
tree | 868e577bfeb69468dc98507c19110f2ee3f3ee7d /mm/readahead.c | |
parent | vfio/type1: Support faulting PFNMAP vmas (diff) | |
download | linux-11c4cd07ba111a09f49625f9e4c851d83daf0a22.tar.xz linux-11c4cd07ba111a09f49625f9e4c851d83daf0a22.zip |
vfio-pci: Fault mmaps to enable vma tracking
Rather than calling remap_pfn_range() when a region is mmap'd, setup
a vm_ops handler to support dynamic faulting of the range on access.
This allows us to manage a list of vmas actively mapping the area that
we can later use to invalidate those mappings. The open callback
invalidates the vma range so that all tracking is inserted in the
fault handler and removed in the close handler.
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions