s390/vfio-ap: store entire AP queue status word with the queue object
authorTony Krowiak <akrowiak@linux.ibm.com>
Tue, 15 Aug 2023 18:43:27 +0000 (14:43 -0400)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 18 Aug 2023 13:09:29 +0000 (15:09 +0200)
commit62aab082e9993163731656ce270cd3c1d29079af
treeba6c3a9bad1f703fbfaeb99fde5b41ee47262601
parentdd174833e44e7717f88f0925b1f78e9ba1d2626e
s390/vfio-ap: store entire AP queue status word with the queue object

Store the entire AP queue status word returned from the ZAPQ command with
the struct vfio_ap_queue object instead of just the response code field.
The other information contained in the status word is need by the
apq_reset_check function to display a proper message to indicate that the
vfio_ap driver is waiting for the ZAPQ to complete because the queue is
not empty or IRQs are still enabled.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Tested-by: Viktor Mihajlovski <mihajlov@linux.ibm.com>
Link: https://lore.kernel.org/r/20230815184333.6554-7-akrowiak@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c
drivers/s390/crypto/vfio_ap_private.h