]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: CCA control CPRB sending
authorJuergen Christ <jchrist@linux.ibm.com>
Mon, 22 Nov 2021 13:01:34 +0000 (14:01 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 16 Dec 2021 18:58:07 +0000 (19:58 +0100)
commit4d9deb3337ccb1920126328fbac4811129adbe18
tree8b713bc6dc16def935e4b9e6fa8e424bdb4e310f
parent6ce482376530b2a86a232469396a83cc97469aa0
s390/zcrypt: CCA control CPRB sending

When sending a CCA CPRB to a control domain, the CPRB has to be sent via a
usage domain.  Previous code used the default domain to route this message.
If the default domain is not online and ready to send the CPRB, the ioctl will
fail even if other usage domains could be used to send the CPRB.

To improve this, instead of using the default domain, switch to auto-select of
the domain.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/zcrypt_api.c