From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Ross Lagerwall" <ross.lagerwall@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Daniel P . Smith" <dpsmith@apertussolutions.com>,
Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 1/3] x86/EFI: Fix detection of buildid
Date: Thu, 5 Jun 2025 14:20:30 +0200 [thread overview]
Message-ID: <aEGLjhw8kTXKbkdV@mail-itl> (raw)
In-Reply-To: <0a314400-126a-4c2a-b36c-dda61bb0b751@suse.com>
[-- Attachment #1: Type: text/plain, Size: 1578 bytes --]
On Thu, Jun 05, 2025 at 02:02:21PM +0200, Jan Beulich wrote:
> On 05.06.2025 13:16, Andrew Cooper wrote:
> > The format of the buildid is a property of the binary, not a property of how
> > it was loaded. This fixes buildid recognition when starting xen.efi from it's
> > MB2 entrypoint.
> >
> > Suggested-by: Ross Lagerwall <ross.lagerwall@citrix.com>
> > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>
> I'll pick this up without a Fixes: tag, but I think it ought to have one. (I
> didn't check whether MB2 or build-id support came later, hence introducing the
> issue.)
>
> > --- a/xen/common/version.c
> > +++ b/xen/common/version.c
> > @@ -203,8 +203,11 @@ void __init xen_build_init(void)
> > rc = xen_build_id_check(n, sz, &build_id_p, &build_id_len);
> >
> > #ifdef CONFIG_X86
> > - /* Alternatively we may have a CodeView record from an EFI build. */
> > - if ( rc && efi_enabled(EFI_LOADER) )
> > + /*
> > + * xen.efi built with a new enough toolchain will have a CodeView record,
> > + * not an ELF note.
> > + */
> > + if ( rc )
>
> Instead of dropping the efi_enabled(), I think you want to replace EFI_LOADER
> by EFI_BOOT.
Part of the motivation for MB2 entry point in xen.efi is using the
same binary in all boot modes, including legacy boot - in which case
none of EFI_* checks would be appropriate here. The grub series adds
support for loading PE binaries, and IIUC it isn't tied to booting via
EFI.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2025-06-05 12:20 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 11:16 [PATCH 0/3] x86/EFI: Fix detection of buildid Andrew Cooper
2025-06-05 11:16 ` [PATCH 1/3] " Andrew Cooper
2025-06-05 12:02 ` Jan Beulich
2025-06-05 12:14 ` Andrew Cooper
2025-06-05 13:24 ` Jan Beulich
2025-06-05 17:01 ` Andrew Cooper
2025-06-06 7:22 ` Jan Beulich
2025-06-06 7:23 ` Jan Beulich
2025-06-06 15:01 ` Andrew Cooper
2025-06-10 8:01 ` Jan Beulich
2025-06-13 21:28 ` Andrew Cooper
2025-06-16 6:27 ` Jan Beulich
2025-06-23 20:18 ` Andrew Cooper
2025-06-24 8:01 ` Jan Beulich
2025-06-13 21:31 ` Stefano Stabellini
2025-06-05 12:20 ` Marek Marczykowski-Górecki [this message]
2025-06-05 13:08 ` Jan Beulich
2025-06-05 13:34 ` Marek Marczykowski-Górecki
2025-06-27 13:08 ` Frediano Ziglio
2025-07-29 16:17 ` Marek Marczykowski-Górecki
2025-06-30 10:50 ` Roger Pau Monné
2025-07-29 16:16 ` Daniel Smith
2025-06-05 11:16 ` [PATCH 2/3] x86/EFI: Explain buildid.ihex Andrew Cooper
2025-06-05 12:03 ` Jan Beulich
2025-07-29 16:18 ` Marek Marczykowski-Górecki
2025-06-05 11:16 ` [PATCH 3/3] xen/EFI: Drop __ASSEMBLY__ ifdefary in efi.h Andrew Cooper
2025-06-05 12:05 ` Jan Beulich
2025-07-29 16:19 ` Marek Marczykowski-Górecki
2025-07-29 16:24 ` Daniel Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aEGLjhw8kTXKbkdV@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=andrew.cooper3@citrix.com \
--cc=dpsmith@apertussolutions.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.