s390/vfio-ap: reset queues after adapter/domain unassignment
authorTony Krowiak <akrowiak@linux.ibm.com>
Wed, 25 Aug 2021 19:00:25 +0000 (15:00 -0400)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 19 Jul 2022 14:18:11 +0000 (16:18 +0200)
commit70aeefe574cbf86528528832c615cae2701f2cf3
treeba319b739eb37d05232c3bb493b658c1b90896dc
parent09d31ff78793ff007ec3b0a26000fcf29ad4928b
s390/vfio-ap: reset queues after adapter/domain unassignment

When an adapter or domain is unassigned from an mdev attached to a KVM
guest, one or more of the guest's queues may get dynamically removed. Since
the removed queues could get re-assigned to another mdev, they need to be
reset. So, when an adapter or domain is unassigned from the mdev, the
queues that are removed from the guest's AP configuration (APCB) will be
reset.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c
drivers/s390/crypto/vfio_ap_private.h