]> 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)
commitbb7868453ad0680d1363cb99b83e8fc4559464aa
treeba319b739eb37d05232c3bb493b658c1b90896dc
parent9725289891c6c87171191340200f81667626bcd8
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