Re: [PATCH v17 02/15] s390/vfio-ap: use new AP bus interface to search for queue devices

From: Tony Krowiak
Date: Tue Jan 11 2022 - 12:34:09 EST




On 12/27/21 03:25, Halil Pasic wrote:
On Thu, 21 Oct 2021 11:23:19 -0400
Tony Krowiak <akrowiak@xxxxxxxxxxxxx> wrote:

his 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 <akrowiak@xxxxxxxxxxxxx>
Reviewed-by: Halil Pasic <pasic@xxxxxxxxxxxxx>
I assume nothing changed here, and nothing significant changed around
this patch (context). If I'm wrong, please tell me and I will
re-evaluate.

rebase to this patch -> delete the patch -> fix resultant conflicts


Regards,
Halil