diff options
author | 2022-07-22 19:02:50 -0700 | |
---|---|---|
committer | 2022-07-23 07:29:11 -0600 | |
commit | cfedb3d5e602dbf12e254cf88aceac348342f9b2 (patch) | |
tree | 22f39127b32411c5a2ae13a83596fdd3cdfff358 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vfio/ap: Pass in physical address of ind to ap_aqic() (diff) | |
download | linux-dev-cfedb3d5e602dbf12e254cf88aceac348342f9b2.tar.xz linux-dev-cfedb3d5e602dbf12e254cf88aceac348342f9b2.zip |
vfio/ccw: Only pass in contiguous pages
This driver is the only caller of vfio_pin/unpin_pages that might pass
in a non-contiguous PFN list, but in many cases it has a contiguous PFN
list to process. So letting VFIO API handle a non-contiguous PFN list
is actually counterproductive.
Add a pair of simple loops to pass in contiguous PFNs only, to have an
efficient implementation in VFIO.
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Eric Farman <farman@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-5-nicolinc@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions