[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen stable-4.19] xen/Kconfig: livepatch-build-tools requires debug information



commit 475511a467e8296f7d11f35cb4b5838c2b465937
Author:     Roger Pau Monné <roger.pau@xxxxxxxxxx>
AuthorDate: Mon Dec 16 13:32:43 2024 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Dec 16 13:32:43 2024 +0100

    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 defaulting DEBUG_INFO to enabled when LIVEPATCH is.
    
    Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
    master commit: 126b0a6e537ce1d486a29e35cfeec1f222a74d11
    master date: 2024-12-02 15:22:05 +0100
---
 xen/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug
index 78b5a7c603..778db6f4e9 100644
--- a/xen/Kconfig.debug
+++ b/xen/Kconfig.debug
@@ -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
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.19



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.