Re: [PATCH 03/15] kexec: Add Kexec HandOver (KHO) generation helpers

2023-12-13 Thread Alexander Graf
On 13.12.23 19:36, Stanislav Kinsburskii wrote: On Wed, Dec 13, 2023 at 12:04:40AM +, Alexander Graf wrote: +int register_kho_notifier(struct notifier_block *nb) +{ + return blocking_notifier_chain_register(_head, nb); +} +EXPORT_SYMBOL_GPL(register_kho_notifier); + +int

Re: [PATCH 03/15] kexec: Add Kexec HandOver (KHO) generation helpers

2023-12-13 Thread Stanislav Kinsburskii
On Wed, Dec 13, 2023 at 12:04:40AM +, Alexander Graf wrote: > +int register_kho_notifier(struct notifier_block *nb) > +{ > + return blocking_notifier_chain_register(_head, nb); > +} > +EXPORT_SYMBOL_GPL(register_kho_notifier); > + > +int unregister_kho_notifier(struct notifier_block *nb) >

[PATCH 03/15] kexec: Add Kexec HandOver (KHO) generation helpers

2023-12-12 Thread Alexander Graf
This patch adds the core infrastructure to generate Kexec HandOver metadata. Kexec HandOver is a mechanism that allows Linux to preserve state - arbitrary properties as well as memory locations - across kexec. It does so using 3 concepts: 1) Device Tree - Every KHO kexec carries a KHO specific