s390: add ELF note type for encrypted CPU state of a PV VCPU
authorJanosch Frank <frankja@linux.ibm.com>
Wed, 20 Jul 2022 12:43:28 +0000 (12:43 +0000)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 28 Jul 2022 16:05:24 +0000 (18:05 +0200)
commita0c0c44e9aa2b5da876467083c359b368f3ce95e
tree245175896aef959b5640ba651d6e0b52f534c721
parente409b7f19172a3c154de62de4baf32a2c25a375a
s390: add ELF note type for encrypted CPU state of a PV VCPU

The type NT_S390_PV_CPU_DATA note contains the encrypted CPU state of
a PV VCPU. It's only relevant in dumps of s390 PV VMs and can't be
decrypted without a second block of encrypted data which provides key
parts. Therefore we only reserve the note type here.

The zgetdump tool from the s390-tools package can, together with a
Customer Communication Key, be used to convert a PV VM dump into a
normal VM dump. zgetdump will decrypt the CPU data and overwrite the
other respective notes to make the data accessible for crash and other
debugging tools.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
[agordeev@linux.ibm.com changed desctiption]
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
include/uapi/linux/elf.h