Re: [PATCH v19 14/20] s390/vfio-ap: reset queues after adapter/domain unassignment

From: Jason J. Herne
Date: Thu Jun 02 2022 - 11:00:19 EST


On 4/4/22 18:10, Tony Krowiak wrote:
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@xxxxxxxxxxxxx>
---
drivers/s390/crypto/vfio_ap_ops.c | 152 +++++++++++++++++++-------
drivers/s390/crypto/vfio_ap_private.h | 2 +
2 files changed, 114 insertions(+), 40 deletions(-)


Reviewed-by: Jason J. Herne <jjherne@xxxxxxxxxxxxx>