]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/vfio-ap: handle hardware checkstop state on queue reset operation
authorJason J. Herne <jjherne@linux.ibm.com>
Thu, 15 Feb 2024 15:31:44 +0000 (10:31 -0500)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Mar 2024 13:41:14 +0000 (14:41 +0100)
commita681226c675cf4ff4f1ece8f44a7f698c4a6ca6a
treee4d03e2c3015400dffdcf41bbab95a6c2f163d9f
parente22033fddd453a81185557fb77568651819bc8f1
s390/vfio-ap: handle hardware checkstop state on queue reset operation

Update vfio_ap_mdev_reset_queue() to handle an unexpected checkstop (hardware error) the
same as the deconfigured case. This prevents unexpected and unhelpful warnings in the
event of a hardware error.

We also stop lying about a queue's reset response code. This was originally done so we
could force vfio_ap_mdev_filter_matrix to pass a deconfigured device through to the guest
for the hotplug scenario. vfio_ap_mdev_filter_matrix is instead modified to allow
passthrough for all queues with reset state normal, deconfigured, or checkstopped. In the
checkstopped case we choose to pass the device through and let the error state be
reflected at the guest level.

Signed-off-by: "Jason J. Herne" <jjherne@linux.ibm.com>
Reviewed-by: Anthony Krowiak <akrowiak@linux.ibm.com>
Link: https://lore.kernel.org/r/20240215153144.14747-1-jjherne@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c