[PATCH 0/3] discover: Check if the kernel image has Ultravisor support

Jeremy Kerr jk at ozlabs.org
Tue Sep 10 10:56:04 AEST 2019


Hi Maxiwell,

> The PPC kernel image has an ELF Note 'namespace' called 'PowerPC'
> to store capabilities that indicates if the powerpc kernel binary
> knows how to run in an ultravisor-enabled system.
> 
> This patchset enables petitboot to read the ELF structures of
> kernel binary using the libelf as low-level support and get the
> kernel image ELF Note capabilities. If that image is not compatible
> with the system, the boot process is aborted.

It's not really up to petitboot to decide whether an image is bootable -
that's up to the kexec implementation and/or the kernel to determine. I
suspect that we'd need better error reporting for this scenario, but
it's not petitboot's job to stop the boot process.

You're aware that petitboot is not only for POWER + ultravisor
platforms, right? Your proposed patches would seem to break everything
but that.

Regards,


Jeremy



More information about the Petitboot mailing list