]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/uv: Provide host-key hashes in sysfs
authorSteffen Eiden <seiden@linux.ibm.com>
Wed, 23 Oct 2024 07:55:28 +0000 (09:55 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:16 +0000 (11:17 +0100)
commit28a51ee8eb8326502d7f8a9c408d14a4cba5a5cf
tree9b36473fb56b7a6dd5e61508f55e52233bf945e3
parentbb4ad73a2893353634ba1844cba026b4546eeb03
s390/uv: Provide host-key hashes in sysfs

Utilize the new Query Ultravisor Keys UVC to give user space the
information which host-keys are installed on the system.

Create a new sysfs directory 'firmware/uv/keys' that contains the hash
of the host-key and the backup host-key of that system. Additionally,
the file 'all' contains the response from the UVC possibly containing
more key-hashes than currently known.

Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Link: https://lore.kernel.org/r/20241023075529.2561384-1-seiden@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/uv.h
arch/s390/kernel/uv.c