]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b61df6885f2bd81743cf72c6ff09bd982b20efc
tree08ced3ceff05e407f9deb8455d44cd03cff613c0
parentc30db8c7eb525aa972259966fcedda74fbb62682
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