]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit309e952b3d24e427ca66dc0c0c1afd8c99acbf4f
treeba319b739eb37d05232c3bb493b658c1b90896dc
parent3b61df6885f2bd81743cf72c6ff09bd982b20efc
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