On Tue, 12 Dec 2023 16:25:17 -0500 Tony Krowiak <akrowiak@xxxxxxxxxxxxx> wrote: > When a queue is unbound from the vfio_ap device driver, it is reset to > ensure its crypto data is not leaked when it is bound to another device > driver. If the queue is unbound due to the fact that the adapter or domain > was removed from the host's AP configuration, then attempting to reset it > will fail with response code 01 (APID not valid) getting returned from the > reset command. Let's ensure that the queue is assigned to the host's > configuration before resetting it. > > Signed-off-by: Tony Krowiak <akrowiak@xxxxxxxxxxxxx> Reviewed-by: Halil Pasic <pasic@xxxxxxxxxxxxx>