linux/drivers/s390/crypto
Tony Krowiak 7f9a267c67 s390/vfio-ap: No need to disable IRQ after queue reset
commit 6c12a6384e0c0b96debd88b24028e58f2ebd417b upstream.

The queues assigned to a matrix mediated device are currently reset when:

* The VFIO_DEVICE_RESET ioctl is invoked
* The mdev fd is closed by userspace (QEMU)
* The mdev is removed from sysfs.

Immediately after the reset of a queue, a call is made to disable
interrupts for the queue. This is entirely unnecessary because the reset of
a queue disables interrupts, so this will be removed.

Furthermore, vfio_ap_irq_disable() does an unconditional PQAP/AQIC which
can result in a specification exception (when the corresponding facility
is not available), so this is actually a bugfix.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
[pasic@linux.ibm.com: minor rework before merging]
Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Fixes: ec89b55e3b ("s390: ap: implement PAPQ AQIC interception in kernel")
Cc: <stable@vger.kernel.org>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-03 23:25:57 +01:00
..
Makefile s390/zcrypt: move cca misc functions to new code file 2019-07-29 18:14:17 +02:00
ap_bus.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
ap_bus.h s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
ap_card.c s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
pkey_api.c s390/pkey: fix paes selftest failure with paes and pkey static build 2020-11-10 12:37:32 +01:00
vfio_ap_drv.c s390/vfio-ap: No need to disable IRQ after queue reset 2021-02-03 23:25:57 +01:00
vfio_ap_ops.c s390/vfio-ap: No need to disable IRQ after queue reset 2021-02-03 23:25:57 +01:00
vfio_ap_private.h s390/vfio-ap: No need to disable IRQ after queue reset 2021-02-03 23:25:57 +01:00
zcrypt_api.c s390/zcrypt: Fix ZCRYPT_PERDEV_REQCNT ioctl 2020-10-01 13:18:24 +02:00
zcrypt_api.h s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
zcrypt_card.c s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_cca_key.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_ccamisc.c s390/zcrypt: fix kmalloc 256k failure 2020-09-23 12:40:46 +02:00
zcrypt_ccamisc.h s390/pkey: add CCA AES cipher key support 2019-08-21 12:58:54 +02:00
zcrypt_cex2a.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex2a.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_cex2c.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex2c.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_cex4.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex4.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_debug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_error.h s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR 2020-01-04 19:18:27 +01:00
zcrypt_msgtype6.c s390/zcrypt: adjust switch fall through comments for -Wimplicit-fallthrough 2019-08-02 13:58:23 +02:00
zcrypt_msgtype6.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_msgtype50.c s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_msgtype50.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_queue.c s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00