aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorNicolin Chen <[email protected]>2022-07-22 19:02:50 -0700
committerAlex Williamson <[email protected]>2022-07-23 07:29:11 -0600
commitcfedb3d5e602dbf12e254cf88aceac348342f9b2 (patch)
tree22f39127b32411c5a2ae13a83596fdd3cdfff358 /scripts/gdb/linux/utils.py
parent10e19d492a326afe7f016a8735ccdfd7c65fc979 (diff)
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 <[email protected]> Reviewed-by: Eric Farman <[email protected]> Tested-by: Eric Farman <[email protected]> Signed-off-by: Nicolin Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions