vfio/type1: Support faulting PFNMAP vmas
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 28 Apr 2020 23:02:24 +0000 (17:02 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 18 May 2020 15:53:13 +0000 (09:53 -0600)
commit41311242221e3482b20bfed10fa4d9db98d87016
tree90e2c0907aec60236473c0703ea5c7bd6b3292a3
parentb9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce
vfio/type1: Support faulting PFNMAP vmas

With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on
the range being faulted into the vma.  Add support to manually provide
that, in the same way as done on KVM with hva_to_pfn_remapped().

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c