From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH] x86/PVH: Dom0 "broken ELF" reporting adjustments
Date: Wed, 17 Jan 2024 11:25:04 +0100 [thread overview]
Message-ID: <ZaerAAt1EnFAZpo3@macbook> (raw)
In-Reply-To: <fda7586f-a1d1-4500-a6c4-d0e010223ee2@suse.com>
On Wed, Jan 17, 2024 at 09:53:26AM +0100, Jan Beulich wrote:
> elf_load_binary() isn't the primary source of brokenness being
> indicated. Therefore make the respective log message there conditional
> (much like PV has it), and add another instance when elf_xen_parse()
> failed (again matching behavior in the PV case).
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> --- a/xen/arch/x86/hvm/dom0_build.c
> +++ b/xen/arch/x86/hvm/dom0_build.c
> @@ -570,6 +570,8 @@ static int __init pvh_load_kernel(struct
> if ( (rc = elf_xen_parse(&elf, &parms, true)) != 0 )
> {
> printk("Unable to parse kernel for ELFNOTES\n");
> + if ( elf_check_broken(&elf) )
> + printk("Xen dom0 kernel broken ELF: %s\n", elf_check_broken(&elf));
I would rather use "%pd: kernel broken ELF: %s\n", in case this gets
used for loading more than dom0 in the dom0less case. The 'Xen'
prefix is IMO useless here (I know it was here before).
Thanks, Roger.
next prev parent reply other threads:[~2024-01-17 10:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 8:53 [PATCH] x86/PVH: Dom0 "broken ELF" reporting adjustments Jan Beulich
2024-01-17 10:25 ` Roger Pau Monné [this message]
2024-01-17 10:42 ` Jan Beulich
2024-01-17 10:44 ` Andrew Cooper
2024-01-17 11:13 ` Roger Pau Monné
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=ZaerAAt1EnFAZpo3@macbook \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=wl@xen.org \
--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.