Re: [PATCH 0/3] Enable UKI image load on x86_64

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

 



Hi Pingfan,

On Tue, 5 Nov 2024 at 11:57, Pingfan Liu <piliu@xxxxxxxxxx> wrote:
>
> The correct kernel fd instead of UKI image fd should be
> passed to the syscall. On arm64, it is not a problem, but on x86_64, it
> is.(see commit log in 2/3)
>
> This series aims to address the above problem.
>
> Cc: Simon Horman <horms@xxxxxxxxxx>
> Cc: Philipp Rudo <prudo@xxxxxxxxxx>
> To: kexec@xxxxxxxxxxxxxxxxxxx
>
> Pingfan Liu (3):
>   UKI: Split out the routine to create temporary fd
>   kexec: Create a temporary file to hold .linux section in uki_probe()
>   x86_64: Support UKI image format

After Doing a test based on this series,   I noticed the uki load will
not use the uki internal .cmdline for kernel command line parameters,
it requires people to specify cmdline with kexec.  I think this is
helpful for kdump to use.  But for general use it would be better to
do something like:

by default use the UKI internal cmdline
If one specify --command-line or --reuse-cmdline then just use the
user provided cmdline and ignore the UKI internal cmdline.

Anyway this can be improved in the future as an appending patch,  the
functionality works for me.

Acked-by: Dave Young <dyoung@xxxxxxxxxx>

>
>  kexec/arch/arm64/kexec-vmlinuz-arm64.c |  2 +
>  kexec/arch/x86_64/kexec-x86_64.c       |  1 +
>  kexec/kexec-uki.c                      | 67 +++++++++++++++++---------
>  3 files changed, 47 insertions(+), 23 deletions(-)
>
> --
> 2.41.0
>
>
> _______________________________________________
> kexec mailing list
> kexec@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/kexec
>





[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux