zcrypt: handle AP Info notification from CHSC SEI command
authorTony Krowiak <akrowiak@linux.ibm.com>
Mon, 18 Feb 2019 17:01:35 +0000 (12:01 -0500)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 11 Mar 2019 17:16:42 +0000 (10:16 -0700)
commit0d9c038feff6f834ad9e5d88b66715235ab23ff3
tree5f86129caff371c694973b1f9349f010d2b31bf5
parent0ba8141fa06db7496502606f6391898d0d3f81f4
zcrypt: handle AP Info notification from CHSC SEI command

The current AP bus implementation periodically polls the AP configuration
to detect changes. When the AP configuration is dynamically changed via the
SE or an SCLP instruction, the changes will not be reflected to sysfs until
the next time the AP configuration is polled. The CHSC architecture
provides a Store Event Information (SEI) command to make notification of an
AP configuration change. This patch introduces a handler to process
notification from the CHSC SEI command by immediately kicking off an AP bus
scan-after-event.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Sebastian Ott <sebott@linux.ibm.com>
Reviewed-by: Harald Freudenberger <FREUDE@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ap.h
drivers/s390/cio/chsc.c
drivers/s390/crypto/ap_bus.c