]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 20 Nov 2019 10:44:31 +0000 (11:44 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 30 Nov 2019 09:52:44 +0000 (10:52 +0100)
commit6733775a92eacd612ac88afa0fd922e4ffeb2bc7
treed1ac2f659527aaa7dc9f45776881cfcbe7e360d1
parent914d52e46490b6599b7f03fad233f4f19bf23cf7
s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR

This patch introduces support for a new architectured reply
code 0x8B indicating that a hypervisor layer (if any) has
rejected an ap message.

Linux may run as a guest on top of a hypervisor like zVM
or KVM. So the crypto hardware seen by the ap bus may be
restricted by the hypervisor for example only a subset like
only clear key crypto requests may be supported. Other
requests will be filtered out - rejected by the hypervisor.
The new reply code 0x8B will appear in such cases and needs
to get recognized by the ap bus and zcrypt device driver zoo.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_error.h