xen/Kconfig: livepatch-build-tools requires debug information
PATCH v2 1/1 xen/Kconfig: livepatch-build-tools requires debug information
The tools infrastructure used to build livepatches for Xen (livepatch-build-tools) consumes some DWARF debug information present in xen-syms to generate a livepatch (see livepatch-build script usage of readelf -wi).
The current Kconfig defaults however will enable LIVEPATCH without DEBUG_INFO on release builds, thus providing a default Kconfig selection that's not suitable for livepatch-build-tools even when LIVEPATCH support is enabled, because it's missing the DWARF debug section.
Fix by selecting DEBUG_INFO by default if LIVEPATCH is enabled.
---
Changes since v1:
- Don't use select.
--- xen/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/Kconfig.debug +1 -1
@@ -133,7 +133,7 @@ endif # DEBUG || EXPERT config DEBUG_INFO bool "Compile Xen with debug info" - default DEBUG + default DEBUG || LIVEPATCH help Say Y here if you want to build Xen with debug information. This information is needed e.g. for doing crash dump analysis of the
Signature · 1 line
2.46.0
Quoted 5 lines · Roger Pau Monne
The tools infrastructure used to build livepatches for Xen (livepatch-build-tools) consumes some DWARF debug information present in xen-syms to generate a livepatch (see livepatch-build script usage of readelf -wi).
Quoted 8 lines
The current
Kconfigdefaults however will enable LIVEPATCH withoutDEBUG_INFOon release builds, thus providing a defaultKconfigselection that's not suitable for livepatch-build-tools even when LIVEPATCH support is enabled, because it's missing the DWARF debug section.Fix by selecting
DEBUG_INFOby default if LIVEPATCH is enabled.Signed-off-by Roger Pau Monné <[email protected]>
Yet I wonder whether this now faces Andrew's opposition.
Jan
Quoted 11 lines · Jan Beulich
Quoted 10 lines · Roger Pau Monne
The tools infrastructure used to build livepatches for Xen (livepatch-build-tools) consumes some DWARF debug information present in xen-syms to generate a livepatch (see livepatch-build script usage of readelf -wi).
The current
Kconfigdefaults however will enable LIVEPATCH withoutDEBUG_INFOon release builds, thus providing a defaultKconfigselection that's not suitable for livepatch-build-tools even when LIVEPATCH support is enabled, because it's missing the DWARF debug section.
Quoted 7 lines
Quoted 3 lines
Fix by selecting
DEBUG_INFOby default if LIVEPATCH is enabled.Signed-off-by Roger Pau Monné <[email protected]>Reviewed-by Jan Beulich <[email protected]>Yet I wonder whether this now faces Andrew's opposition.
You have both options now on the list. I don't mind that much, just want to get this sorted. Either patch is better than the current situation.
Thanks, Roger.