aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorTony Krowiak <[email protected]>2021-01-28 15:53:07 -0500
committerAlexander Gordeev <[email protected]>2022-07-19 16:18:08 +0200
commit034921cdea1c4c491735c8eb344634c7b899d930 (patch)
tree182b193a15b119ec7eb10044051eb066ea8ed0c2 /lib/mpi/mpi-sub-ui.c
parent5352ebf735064373dc2dd96b39c0fbf347db0095 (diff)
s390/vfio-ap: use new AP bus interface to search for queue devices
This patch refactors the vfio_ap device driver to use the AP bus's ap_get_qdev() function to retrieve the vfio_ap_queue struct containing information about a queue that is bound to the vfio_ap device driver. The bus's ap_get_qdev() function retrieves the queue device from a hashtable keyed by APQN. This is much more efficient than looping over the list of devices attached to the AP bus by several orders of magnitude. Signed-off-by: Tony Krowiak <[email protected]> Reviewed-by: Halil Pasic <[email protected]> Reviewed-by: Jason J. Herne <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions