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)
commitcff2d3abc8da078a0447d785736204d8a0ad49b0
tree8b713bc6dc16def935e4b9e6fa8e424bdb4e310f
parent248420797d28c922507f9bfbcc64dbaa0c0a7f53
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