diff options
author | 2022-07-22 19:02:52 -0700 | |
---|---|---|
committer | 2022-07-25 13:41:22 -0600 | |
commit | 3fad3a26139d5a41bc6b20df47ff067f5db2fe75 (patch) | |
tree | b50e204aa6f9a99a299ce889280ca5e0df3b9c48 /mm/mlock.c | |
parent | vfio: Pass in starting IOVA to vfio_pin/unpin_pages API (diff) | |
download | linux-3fad3a26139d5a41bc6b20df47ff067f5db2fe75.tar.gz linux-3fad3a26139d5a41bc6b20df47ff067f5db2fe75.tar.bz2 linux-3fad3a26139d5a41bc6b20df47ff067f5db2fe75.zip |
vfio/ap: Change saved_pfn to saved_iova
The vfio_ap_ops code maintains both nib address and its PFN, which
is redundant, merely because vfio_pin/unpin_pages API wanted pfn.
Since vfio_pin/unpin_pages() now accept "iova", change "saved_pfn"
to "saved_iova" and remove pfn in the vfio_ap_validate_nib().
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Tested-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Link: https://lore.kernel.org/r/20220723020256.30081-7-nicolinc@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions