s390/os_info: Introduce value entries
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 27 Jan 2022 13:28:49 +0000 (14:28 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 17 Apr 2024 11:38:01 +0000 (13:38 +0200)
commit88702793c5b4ef127a1f57d76920a80f70d081a7
tree1e1648660fb58804d59aadf22783fffe6e9ce005
parent5fb50fa66ab94141c0692dc5043ed30e6159a81b
s390/os_info: Introduce value entries

Introduce entries that do not reference any data in memory,
but rather provide values. Set the size of such entries to
zero and do not compute checksum for them, since there is no
data which integrity needs to be checked. The integrity of
the value entries itself is still covered by the os_info
checksum.

Reserve the lowest unused entry index OS_INFO_RESERVED for
future use - presumably for the number of entries present.
That could later be used by user level tools. The existing
tools would not notice any difference.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/os_info.h
arch/s390/kernel/ipl.c
arch/s390/kernel/os_info.c