]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd42549ba3c1316bed1c249582d23ba15159f39dc
tree5f86129caff371c694973b1f9349f010d2b31bf5
parent71510f46cd47039698b4ad0a0e93799ce2fa9b99
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