Re: [PATCH v2] zcrypt: handle AP Info notification from CHSC SEI command

From: Cornelia Huck
Date: Thu Feb 07 2019 - 04:59:50 EST


On Wed, 6 Feb 2019 16:31:26 -0500
Tony Krowiak <akrowiak@xxxxxxxxxxxxx> wrote:

> 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@xxxxxxxxxxxxx>
> Reviewed-by: Halil Pasic <pasic@xxxxxxxxxxxxx>
> Reviewed-by: Sebastian Ott <sebott@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/ap.h | 11 +++++++++++
> drivers/s390/cio/chsc.c | 13 +++++++++++++
> drivers/s390/crypto/ap_bus.c | 11 +++++++++++
> 3 files changed, 35 insertions(+)

Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>