vfio/ccw: don't group contiguous pages on 2K IDAWs
authorEric Farman <farman@linux.ibm.com>
Thu, 11 Aug 2022 17:20:54 +0000 (19:20 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:09 +0000 (14:34 +0100)
commitb5a73e8eb225e3103a030c518375b4b2d0c66ccd
tree88e9721c5850a8c8bb616241e5c7d89bf12612d1
parent1b676fe3d9d3f262bc26bb18dc1b1ac66c83c2a0
vfio/ccw: don't group contiguous pages on 2K IDAWs

The vfio_pin_pages() interface allows contiguous pages to be
pinned as a single request, which is great for the 4K pages
that are normally processed. Old IDA formats operate on 2K
chunks, which makes this logic more difficult.

Since these formats are rare, let's just invoke the page
pinning one-at-a-time, instead of trying to group them.
We can rework this code at a later date if needed.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/vfio_ccw_cp.c