s390/vfio-ap: hot plug/unplug of AP devices when probed/removed
authorTony Krowiak <akrowiak@linux.ibm.com>
Tue, 1 Feb 2022 15:52:29 +0000 (10:52 -0500)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 19 Jul 2022 14:18:11 +0000 (16:18 +0200)
commit09d31ff78793ff007ec3b0a26000fcf29ad4928b
tree08ced3ceff05e407f9deb8455d44cd03cff613c0
parent51dc562af09dfb1a0d3cc806f64f0d72704647b5
s390/vfio-ap: hot plug/unplug of AP devices when probed/removed

When an AP queue device is probed or removed, if the mediated device is
attached to a KVM guest, the mediated device's adapter, domain and
control domain bitmaps must be filtered to update the guest's APCB and if
any changes are detected, the guest's APCB must then be hot plugged into
the guest to reflect those changes to the guest.

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