All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Rudo <prudo@redhat.com>
To: Pingfan Liu <piliu@redhat.com>
Cc: Simon Horman <horms@kernel.org>,
	Eric Biederman <ebiederm@xmission.com>,
	Baoquan He <bhe@redhat.com>, Dave Young <dyoung@redhat.com>,
	Ard Biesheuvel <ardb@kernel.org>,
	Jan Hendrik Farr <kernel@jfarr.cc>,
	Lennart Poettering <mzxreary@0pointer.de>,
	kexec@lists.infradead.org
Subject: Re: [PATCHv2 0/3] kexec: Add support for UKI format kernel
Date: Mon, 21 Oct 2024 18:25:06 +0200	[thread overview]
Message-ID: <20241021182506.37b16102@rotkaeppchen> (raw)
In-Reply-To: <20241016113418.22568-1-piliu@redhat.com>

Hi Pingfan,
Hi Simon,

I know I'm a little bit too late, but I finally had time to take a
look. All in all the series looks fine to me. But I have two questions.

1) Is there a reason why you don't enable the UKI for x86 as well? The
way I see it patch 1 and 2 cover x86 as well. So you only should need a
patch similar to patch 3. Or am I missing something?

2) Would it make sense to "reuse" the mechanism you introduced for the
initrd for the command line as well. I.e. if it's a UKI with a .cmdline
section and the user didn't provide any of the --command-line,
--reuse-cmdline, etc. then use the command line from the UKI.

Thanks
Philipp

On Wed, 16 Oct 2024 19:34:12 +0800
Pingfan Liu <piliu@redhat.com> wrote:

> As a UEFI PE format kernel image becomes more popular, there is a need
> for kexec to reboot those kinds of images.
> 
> After the introduction of the UKI (another PE), at present, there are
> three competitive methods to support that goal, but all of them have
> pros and cons.[1] It seems that none of them can be accepted in the near
> future.  Therefore, we are resorting to the user space kexec-tools to
> parse the UKI format for the time being.
> 
> By parsing the UKI, systemd-stub is stepped around and PCM will not affect
> the boot up of the second system.
> 
> [1]: https://github.com/rhkdump/kexec_uefi/blob/main/overview.md#the-competitive-solutions
> 
> Cc: Simon Horman <horms@kernel.org>
> Cc: Eric Biederman <ebiederm@xmission.com>
> Cc: Baoquan He <bhe@redhat.com>
> Cc: Dave Young <dyoung@redhat.com>
> Cc: Ard Biesheuvel <ardb@kernel.org>
> Cc: Jan Hendrik Farr <kernel@jfarr.cc>
> Cc: Philipp Rudo <prudo@redhat.com>
> Cc: Lennart Poettering <mzxreary@0pointer.de>
> Cc: kexec@lists.infradead.org
> ---
> v1 -> v2:
> Add include/pe.h in makefile to fix 'make dist'
> Rename default_initrd_fd to implicit_initrd_fd
> 
> 
> Pingfan Liu (3):
>   kexec: Introduce implicit_initrd_fd to pass internal initrd
>     information
>   kexec: Introduce UKI image parser
>   arm64: Support UKI image format
> 
>  include/Makefile                     |   1 +
>  include/pe.h                         | 104 +++++++++++++++++++++++
>  kexec/Makefile                       |   1 +
>  kexec/arch/arm64/kexec-arm64.c       |   1 +
>  kexec/arch/arm64/kexec-image-arm64.c |   3 +-
>  kexec/arch/x86_64/kexec-bzImage64.c  |   3 +-
>  kexec/kexec-uki.c                    | 122 +++++++++++++++++++++++++++
>  kexec/kexec.c                        |   2 +
>  kexec/kexec.h                        |   5 ++
>  9 files changed, 240 insertions(+), 2 deletions(-)
>  create mode 100644 include/pe.h
>  create mode 100644 kexec/kexec-uki.c
> 


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  parent reply	other threads:[~2024-10-21 16:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16 11:34 [PATCHv2 0/3] kexec: Add support for UKI format kernel Pingfan Liu
2024-10-16 11:34 ` [PATCHv2 1/3] kexec: Introduce implicit_initrd_fd to pass internal initrd information Pingfan Liu
2024-10-16 11:34 ` [PATCHv2 2/3] kexec: Introduce UKI image parser Pingfan Liu
2024-10-21 10:16   ` Simon Horman
2024-10-22  6:33     ` Pingfan Liu
2024-10-22  6:27   ` [PATCHv3 " Pingfan Liu
2024-10-16 11:34 ` [PATCHv2 3/3] arm64: Support UKI image format Pingfan Liu
2024-10-21 10:20 ` [PATCHv2 0/3] kexec: Add support for UKI format kernel Simon Horman
2024-10-21 16:25 ` Philipp Rudo [this message]
2024-10-22  6:25   ` Pingfan Liu

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=20241021182506.37b16102@rotkaeppchen \
    --to=prudo@redhat.com \
    --cc=ardb@kernel.org \
    --cc=bhe@redhat.com \
    --cc=dyoung@redhat.com \
    --cc=ebiederm@xmission.com \
    --cc=horms@kernel.org \
    --cc=kernel@jfarr.cc \
    --cc=kexec@lists.infradead.org \
    --cc=mzxreary@0pointer.de \
    --cc=piliu@redhat.com \
    /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.