Re: [PATCH] xen/livepatch: Move init_or_livepatch_* into xen/init.h

Oleksii Kurochko <[email protected]> Wed, 5 Aug 2026 13:20:51 +0200
Newsgroups gmane.comp.emulators.xen.devel
Message-ID <[email protected]>

On 8/3/26 5:09 PM, Andrew Cooper wrote:
> xen/livepatch.h is a fairly heavyweight header pulling in public/sysctl.h, and
> a reasonable number of users care only for the init_or_livepatch_* tags only.
> 
> They're arguably more init than livepatch anyway, and by moving them to
> init.h, we can remove a number of includes.
> 
> The include in vsprintf was leftover from early versions of the work.  In the
> version committed, d5ccf4482e4f ("x86, xsplice: Print payload's symbol name
> and payload name in backtraces"), symbol_lookup() had been adjusted to handle
> the livepatch symbol names properly.
> 
> No functional change.
> 
> Signed-off-by: Andrew Cooper <[email protected]>
> ---
> CC: Anthony PERARD <[email protected]>
> CC: Michal Orzel <[email protected]>
> CC: Jan Beulich <[email protected]>
> CC: Julien Grall <[email protected]>
> CC: Roger Pau MonnĂ© <[email protected]>
> CC: Stefano Stabellini <[email protected]>
> CC: Oleksii Kurochko <[email protected]>
> CC: Ross Lagerwall <[email protected]>
> ---

Reviewed-by: Oleksii Kurochko <[email protected]>

Thanks.

~ Oleksii