s390/vfio_ap: check TAPQ response code when waiting for queue reset
authorTony Krowiak <akrowiak@linux.ibm.com>
Wed, 18 Jan 2023 20:31:07 +0000 (15:31 -0500)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 22 Jan 2023 17:42:36 +0000 (18:42 +0100)
commit0daf9878a7990058e74025493820bce0f67654c4
tree3feed0a39791af1096f8f916f7bf9c14ab1232a4
parent62414d901c3afde307f293a3c7f46baa2ec8edec
s390/vfio_ap: check TAPQ response code when waiting for queue reset

The vfio_ap_mdev_reset_queue() function does not check the status
response code returned form the PQAP(TAPQ) function when verifying the
queue's status; consequently, there is no way of knowing whether
verification failed because the wait time was exceeded, or because the
PQAP(TAPQ) failed.

This patch adds a function to check the status response code from the
PQAP(TAPQ) instruction and logs an appropriate message if it fails.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Link: https://lore.kernel.org/r/20230118203111.529766-3-akrowiak@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c