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

Re: [PATCH for-4.21 v7] xen: Strip xen.efi by default


  • To: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 13 Nov 2025 13:17:48 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=IwXmYX3eOYhvipiTCQPcJ+6k9KWItQfK2RlNtrfwylw=; b=rkGJoBoBO5r5qOqMFVeFJ4IEM5XAv26Y5/c9fZVO+zmP+4X9hTYmb0ipxk6W+YVwzPIIgerd0qQVP8BLMWufVYSgIJKvrRwRsiq8RpS7tGyeJOxydXnXbk91mxVjJMll2uOWZ5/x+1R/ty89Jm3vr8cATeEnIOSHlarEiBFVON4Lu1RaArPsu3UfYeJRDzz4Fs6YRJOtmC9s2vRnICeMvlwLWeo6bw4Dh/RCjSDitdl95Eo2cWQf7W8AmI+4AeBCio2Hj0AF+p8kBbxKD7kf/3CKBd2gbum1QRrBM27D2j14iIrLuEymtIvv019UtMq7E8EWSNMZi5QvkAxVtjatDw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=I/zuLFzgPEli7FiCPjk0ad5ztJJ8NLiHZ7H2P8zRZtnYQK9wh73kSH/JYQn9mu/VLfOS8vW7gibxnfo2AVFxOaSziorQEjiY6D1BPQDSQ47Y6GxtAJkjMB8Ex85MmfTv59JTgaEYwY/fkdU2tnrxxmQCvnav4X7s8t77c2lUN5qKmaixydmaNHk2fB2oEMJF1vlulzhSKFqHWqP6IoJUXO5AGsUaEsjKSg1dufO7iucWixUcNljfn5TraZA+XYODo/olkKKVTRucXXZ7ydBi9ZC/PYtvFcIQtCEAU6CHS713eLf2zt6pPkjyiE4mGQrmz9xCnI+/or1CbjXfMiBxPw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Frediano Ziglio <freddy77@xxxxxxxxx>, Demi Marie Obenour <demiobenour@xxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • Delivery-date: Thu, 13 Nov 2025 13:18:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 13/11/2025 12:49 pm, Frediano Ziglio wrote:
> From: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
>
> For xen.gz file we strip all symbols and have an additional
> xen-syms.efi file version with all symbols.
> Make xen.efi more coherent stripping all symbols too.
> xen-syms.efi can be used for debugging.
>
> Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
> ---
> Changes since v1:
> - avoid leaving target if some command fails.
>
> Changes since v2:
> - do not convert type but retain PE format;
> - use xen-syms.efi for new file name, more consistent with ELF.
>
> Changes since v3:
> - update documentation;
> - do not remove xen.efi.elf;
> - check endbr instruction before generating final target.
>
> Changes since v4:
> - simplify condition check;
> - avoid reuse of $@.tmp file.
>
> Changes since v5:
> - avoid creation of temporary file.
>
> Changes since v6:
> - install xen-syms.efi;
> - always strip xen.efi;
> - restore EFI_LDFLAGS check during rule execution;
> - update CHANGELOG.md;
> - added xen-syms.efi to .gitignore.
> ---
>  .gitignore            |  1 +
>  CHANGELOG.md          |  3 +++
>  docs/misc/efi.pandoc  |  8 +-------
>  xen/Kconfig.debug     |  9 ++-------
>  xen/Makefile          | 25 +++----------------------
>  xen/arch/x86/Makefile | 11 ++++++++---
>  6 files changed, 18 insertions(+), 39 deletions(-)
>
> diff --git a/.gitignore b/.gitignore
> index d83427aba8..213972b65c 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -222,6 +222,7 @@ tools/flask/policy/xenpolicy-*
>  xen/xen
>  xen/suppression-list.txt
>  xen/xen-syms
> +xen/xen-syms.efi
>  xen/xen-syms.map
>  xen/xen.*
>  
> diff --git a/CHANGELOG.md b/CHANGELOG.md
> index c9932a2af0..3bdcc3b47a 100644
> --- a/CHANGELOG.md
> +++ b/CHANGELOG.md
> @@ -65,6 +65,9 @@ The format is based on [Keep a 
> Changelog](https://keepachangelog.com/en/1.0.0/)
>        for hypervisor mode.
>  
>  ### Removed
> + - The install-time environment variable INSTALL_EFI_STRIP is no longer
> +   supported, xen.efi will is now always being stripped.

I'd rephrase this a little.  "... INSTALL_EFI_STRIP no longer exists. 
xen.efi is always stripped, while the symbols remain available in
xen-syms.efi."

Personally, I'd have put this in the Changed section rather than
Removed, but both can be adjusted together.

This bug is on the 4.21 tracking list.  CC'ing Oleksii.

~Andrew



 


Rackspace

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