From nobody Thu May 2 11:49:01 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1678170771; cv=none; d=zohomail.com; s=zohoarc; b=jFPKfS/XDm7Z0pJCWVKllLdbZvGnCT9uJLpjWiHs9UpO4WaYpUkJu/XmGdsGz4W4BCH39ZDDXlJGvdh626w9RS7xop38NDzYDWsnJwahStZqxaPJhxLY1VtJXwAvhDaS+3LHtf7M8Ik6qtpejjwc+BRBuCI1JWbtFvwz26L1o1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678170771; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vPgjXrNLvgzUHqKwlkvV6+Y9at3ZjxhnLYmXdQafiRA=; b=ScTzU6Z3Hp+mGGVf/SzjsVJVjQ5mZ4sCPKhZE9wfhKHC80GLopkjLT0f2tCTTP/0nc2FEtjhgLFcznzvaAD9ieBQll6yILtO/eFkA2MV0FNbYumtQEyBbXmAInhjaFsmAY6rxliyIxXuWmecb9sk9axqHdV13JqXoMiGnmSMNWM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16781707713591012.5905348927085; Mon, 6 Mar 2023 22:32:51 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.507206.780468 (Exim 4.92) (envelope-from ) id 1pZQs6-0003Is-MT; Tue, 07 Mar 2023 06:32:26 +0000 Received: by outflank-mailman (output) from mailman id 507206.780468; Tue, 07 Mar 2023 06:32:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pZQs6-0003Il-Je; Tue, 07 Mar 2023 06:32:26 +0000 Received: by outflank-mailman (input) for mailman id 507206; Tue, 07 Mar 2023 06:32:25 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pZQs5-00033H-5e for xen-devel@lists.xenproject.org; Tue, 07 Mar 2023 06:32:25 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id d1c04761-bcb1-11ed-a550-8520e6686977; Tue, 07 Mar 2023 07:32:23 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2B04E1FE0C; Tue, 7 Mar 2023 06:32:23 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E27E813440; Tue, 7 Mar 2023 06:32:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id RnIINnbaBmSuWQAAMHmgww (envelope-from ); Tue, 07 Mar 2023 06:32:22 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d1c04761-bcb1-11ed-a550-8520e6686977 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1678170743; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vPgjXrNLvgzUHqKwlkvV6+Y9at3ZjxhnLYmXdQafiRA=; b=Dn9/0C4fXmGeaorjgKHh4hH5Mf/St3fpsVufrFqico0iefQ7BOQzHnJ7tNyFlAak7qk22F 1/GEulRvXcPQOPIBXe+wK4MJjfw1Er9T0v+QGHSJBOdmro55F7Xy9fvrqA4lttSvprkHPv lUaOXrEXt0pncBTKJ+xhl2APFtqrLl8= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 1/2] xen: move CONFIG_DEBUG_INFO out of EXPERT section Date: Tue, 7 Mar 2023 07:32:13 +0100 Message-Id: <20230307063214.30569-2-jgross@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230307063214.30569-1-jgross@suse.com> References: <20230307063214.30569-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1678170772658100005 Content-Type: text/plain; charset="utf-8" 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"). 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. Signed-off-by: Juergen Gross --- xen/Kconfig.debug | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug index fad3050d4f..a2691f4239 100644 --- a/xen/Kconfig.debug +++ b/xen/Kconfig.debug @@ -11,6 +11,13 @@ config DEBUG =20 You probably want to say 'N' here. =20 +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. + if DEBUG || EXPERT =20 config CRASH_DEBUG @@ -28,13 +35,6 @@ config GDBSX If you want to enable support for debugging guests from dom0 via gdbsx then say Y. =20 -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 --=20 2.35.3 From nobody Thu May 2 11:49:01 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1678170771; cv=none; d=zohomail.com; s=zohoarc; b=AyppLaVX0x/eMb8DB7k6mwWkABOgjRNnqaCqTl0xLHWQO6UHMMmer9FOyRagvkbStsyv5CZp+mv44ogGrpXLSZgzRHTMmGfQsXeqvwUkOT0ZJCzdZHYd46hX8nkiaYhOdDdOJ1gTmmJG1BIo0TezRis8FoT+pWgB+jv4um4LaPk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678170771; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JQeQBjgXognDwpHsaZ/AdZba+6tFL2v6oNaCRwJ1TnI=; b=hp2BvO5+AONXmkswA3kb7fhjxIIA+PcS8aAuN7Zt6cCK9FbfedTvcUDqjgSjNx3rzlJLtpIKU1ktKes5cHoXtZpjsxBaxqtzOAUJL4ALKB+KGqXFTDxuNHqh3ZyHl3h31AX+OEjhOY2XWALKGmADiGBB5cpeHbXhVhgQcE68VOc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1678170771847355.86348210110964; Mon, 6 Mar 2023 22:32:51 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.507207.780479 (Exim 4.92) (envelope-from ) id 1pZQsB-0003bW-V0; Tue, 07 Mar 2023 06:32:31 +0000 Received: by outflank-mailman (output) from mailman id 507207.780479; Tue, 07 Mar 2023 06:32:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pZQsB-0003bN-Rt; Tue, 07 Mar 2023 06:32:31 +0000 Received: by outflank-mailman (input) for mailman id 507207; Tue, 07 Mar 2023 06:32:30 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pZQsA-0003aF-Kh for xen-devel@lists.xenproject.org; Tue, 07 Mar 2023 06:32:30 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [2001:67c:2178:6::1d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id d5179822-bcb1-11ed-96b5-2f268f93b82a; Tue, 07 Mar 2023 07:32:29 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C56E71FE0C; Tue, 7 Mar 2023 06:32:28 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 890A013440; Tue, 7 Mar 2023 06:32:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3N0nIHzaBmS+WQAAMHmgww (envelope-from ); Tue, 07 Mar 2023 06:32:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d5179822-bcb1-11ed-96b5-2f268f93b82a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1678170748; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JQeQBjgXognDwpHsaZ/AdZba+6tFL2v6oNaCRwJ1TnI=; b=D8+8v5bkh08q2MmzoZcAi3hf8xMrj6fm5p9kVA2yYHMDS7xSLVjAFD5NN7OIH++y03KK31 eDDc05NFACfU5fXQzHYwjGOZXgiktwOfWsiMJaoXWQeJ4jbUuaI9/78VCtIIWw4wxJ+DTZ kEKImUQgJXJAObpnaUrfrlg+C1R56qg= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 2/2] xen: update CONFIG_DEBUG_INFO help text Date: Tue, 7 Mar 2023 07:32:14 +0100 Message-Id: <20230307063214.30569-3-jgross@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230307063214.30569-1-jgross@suse.com> References: <20230307063214.30569-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1678170772327100001 Content-Type: text/plain; charset="utf-8" Update the help text of the CONFIG_DEBUG_INFO option to be a little bit more specific. Signed-off-by: Juergen Gross --- xen/Kconfig.debug | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug index a2691f4239..20c73ee55a 100644 --- a/xen/Kconfig.debug +++ b/xen/Kconfig.debug @@ -15,8 +15,11 @@ 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. + 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 + hypervisor via the "crash" tool. + Saying Y will increase the size of xen-syms and the built EFI + binary. =20 if DEBUG || EXPERT =20 --=20 2.35.3