diff options
author | Maxiwell S. Garcia <maxiwell@linux.ibm.com> | 2019-09-23 19:30:24 -0300 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2020-01-25 11:54:50 +0800 |
commit | 7b108dfe3a4788801537ce48b67a0d69c1b25d7f (patch) | |
tree | 38565b770c554f3f3cd3a315c183e2e358458c12 /lib | |
parent | 3513c7f934d97b1db34c5e4e1ce9c995844764bd (diff) | |
download | talos-petitboot-7b108dfe3a4788801537ce48b67a0d69c1b25d7f.tar.gz talos-petitboot-7b108dfe3a4788801537ce48b67a0d69c1b25d7f.zip |
discover: Check if the kernel image has Ultravisor support
The PPC kernel image has an ELF Note 'namespace' called 'PowerPC'
to store capabilities and information which can be used by a
bootloader or userland. The capabilities can be accessed using
the 'type' PPC_ELFNOTE_CAPABILITIES which returns a bitmap
as 'descriptor' field.
Bit 0 in this bitmap indicates that the powerpc kernel binary
knows how to run in an ultravisor-enabled system. So, using this
bit, the petitboot can decide to abort the boot if the kernel is
incompatible, avoiding the crash later.
This validation only occours on PowerPC ultravisor-system and if
the config 'preboot check' in UI screen is enabled.
Signed-off-by: Maxiwell S. Garcia <maxiwell@linux.ibm.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions