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'sI assume nothing changed here, and nothing significant changed around
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>
this patch (context). If I'm wrong, please tell me and I will
re-evaluate.
Regards,
Halil