Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
vfio/type1: Use follow_pte()
follow_pfn() doesn't make sure that we're using the correct page protections, get the pte with follow_pte() so that we can test protections and get the pfn from the pte. Fixes: 5cbf326 ("vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()") Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
- Loading branch information