Searched hist:"61783394 f4eb3a8a0944005ea2761c011788a9c3" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/s390/cio/ |
H A D | vfio_ccw_cp.c | diff 61783394f4eb3a8a0944005ea2761c011788a9c3 Fri Oct 21 10:02:48 CDT 2022 Eric Farman <farman@linux.ibm.com> vfio/ccw: populate page_array struct inline
There are two possible ways the list of addresses that get passed to vfio are calculated. One is from a guest IDAL, which would be an array of (probably) non-contiguous addresses. The other is built from contiguous pages that follow the starting address provided by ccw->cda.
page_array_alloc() attempts to simplify things by pre-populating this array from the starting address, but that's not needed for a CCW with an IDAL anyway so doesn't need to be in the allocator. Move it to the caller in the non-IDAL case, since it will be overwritten when reading the guest IDAL.
Remove the initialization of the pa_page output pointers, since it won't be explicitly needed for either case.
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>
|