diff options
author | Eric Farman <farman@linux.ibm.com> | 2022-10-21 18:02:48 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-01-09 16:34:08 +0300 |
commit | 61783394f4eb3a8a0944005ea2761c011788a9c3 (patch) | |
tree | a96479ffcfb2be7092010909f69ae4b3b945bc2a /drivers/s390/Makefile | |
parent | 62a97a56a64c97c3865e55d702babc22f3b2ea6a (diff) | |
download | linux-61783394f4eb3a8a0944005ea2761c011788a9c3.tar.xz |
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>
Diffstat (limited to 'drivers/s390/Makefile')
0 files changed, 0 insertions, 0 deletions