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

RE: [PATCH v3 1/2] xen: move CONFIG_DEBUG_INFO out of EXPERT section


  • To: Juergen Gross <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Dietmar Hahn (Fujitsu)" <dietmar.hahn@xxxxxxxxxxx>
  • Date: Tue, 18 Apr 2023 05:16:19 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=C4i5l61YbcnMjezwyjpCL15jLPNLE3FWAkzaiNX3FZs=; b=BZv0Idvmd4jKl770nlt5otLTIQOEqJObinAmhqRki3Be40soKf1y97rkt0RfVOkF8QD6c7zyrggVoGlPvS+CngxX+COs3DRsGPvNDPyC9r2FHjdJRK5TTOYEdqB0yGsgQJwRjE5E+vDqJ1C5z41I9FZ3EvBwrTHiMMCn1B9a853Ro2yNWKIQ0tdSDWd5Lo7L+9L3ry8pnjSMPleKGera0zIIjmsSuwOYeYIHDNZSm53QYGdrXPkTVUJ54G4NGOM0BW3omIBkeESQi076uHkHUjJE5wCE6I+zMgHv2kG76eMM6u2YAeIJRJp90sfk3ohhnBkGcJq+i6+QIi2R6km3Cw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hk5pZisYA/oIArlJ0SRn4OQujHvsMyBIbWMGu45mnDSqWkc6pYeDZpCa3LBwUOfHYxnwdfRS2/fS0kFUvIlZC7rzABhmBoUlW5Blfk8MvArrz6AC/1i630gRLw6dkYei8LidmLSz0yubyvNhSziXB6yFPoJBpEqDGZCsgKJunJkOp0JqfSpvl1cj2TeJFEmnYzTpyVSshALet0fT/guOxgKyPDVlAWSFUVaG6STL03julFFuvBRqsCeTrxG1IV4V4gGzlTFXHedbYx5AFT6KDkSW7GpXnholog9ajrOzjcEVIsifQWQohjnI+YIoWMAvtUcS7BziGcpDlACWE+Rg/Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 18 Apr 2023 05:16:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ActionId=86363395-ed68-4ea2-abef-7d5070f3e675;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ContentBits=0;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Enabled=true;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Method=Standard;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Name=FUJITSU-RESTRICTED???;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SetDate=2023-04-18T05:11:18Z;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SiteId=a19f121d-81e1-4858-a9d8-736e267fd4c7;
  • Thread-index: AQHZZ8aayKNwRwnxU0qZJCKcF1kheq8wmN2g
  • Thread-topic: [PATCH v3 1/2] xen: move CONFIG_DEBUG_INFO out of EXPERT section

Hi Juergen,

> From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of Juergen 
> Gross
> Sent: Wednesday, April 5, 2023 3:56 PM
> To: xen-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Juergen Gross <jgross@xxxxxxxx>; Andrew Cooper 
> <andrew.cooper3@xxxxxxxxxx>; George Dunlap <george.dunlap@xxxxxxxxxx>; Jan
> Beulich <jbeulich@xxxxxxxx>; Julien Grall <julien@xxxxxxx>; Stefano 
> Stabellini <sstabellini@xxxxxxxxxx>; Wei Liu <wl@xxxxxxx>
> Subject: [PATCH v3 1/2] xen: move CONFIG_DEBUG_INFO out of EXPERT section
> 
> In order to support hypervisor analysis of crash dumps, xen-syms needs
> to contain debug_info. It should be allowed to configure the hypervisor
> to be built with CONFIG_DEBUG_INFO in non-debug builds without having
> to enable EXPERT.
> 
> Using a rather oldish gcc (7.5) it was verified that code generation
> doesn't really differ between CONFIG_DEBUG_INFO on or off without
> CONFIG_DEBUG being set (only observed differences were slightly
> different symbol addresses, verified via "objdump -d", resulting from
> the different config.gz in the binary). The old gcc version selection
> was based on the assumption, that newer gcc won't regress in this
> regard.
> 
> So move CONFIG_DEBUG_INFO out of the section guarded by EXPERT.
> 
> It should be mentioned that there have been reports that the linking
> of the xen.efi might take considerably longer with CONFIG_DEBUG_INFO
> selected when using newer binutils.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> ---
> V2:
> - expanded commit message (Jan Beulich)
> V3:
> - move DEBUG_INFO block to the end of the file (Jan Beulich)
> ---
>  xen/Kconfig.debug | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug
> index fad3050d4f..279dbe8274 100644
> --- a/xen/Kconfig.debug
> +++ b/xen/Kconfig.debug
> @@ -28,13 +28,6 @@ config GDBSX
>         If you want to enable support for debugging guests from dom0 via
>         gdbsx then say Y.
> 
> -config DEBUG_INFO
> -     bool "Compile Xen with debug info"
> -     default y
> -     ---help---
> -       If you say Y here the resulting Xen will include debugging info
> -       resulting in a larger binary image.
> -
>  config FRAME_POINTER
>       bool "Compile Xen with frame pointers"
>       default DEBUG
> @@ -132,4 +125,11 @@ source "arch/$(SRCARCH)/Kconfig.debug"
> 
>  endif # DEBUG || EXPERT
> 
> +config DEBUG_INFO
> +     bool "Compile Xen with debug info"
> +     default DEBUG
> +     help
> +       If you say Y here the resulting Xen will include debugging info
> +       resulting in a larger binary image.
> +
>  endmenu
> --
> 2.35.3
> 

For the non-efi xen:

Tested-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxx>

Dietmar.



 


Rackspace

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