* Re: [PATCH v2 1/2] kexec: __NR_kexec_file_load is set to undefined on LoongArch
[not found] <1677899351-31098-1-git-send-email-tangyouling@loongson.cn>
@ 2023-03-08 12:50 ` Simon Horman
[not found] ` <1677899351-31098-2-git-send-email-tangyouling@loongson.cn>
1 sibling, 0 replies; 2+ messages in thread
From: Simon Horman @ 2023-03-08 12:50 UTC (permalink / raw)
To: Youling Tang; +Cc: kexec, Philipp Rudo
On Sat, Mar 04, 2023 at 11:09:10AM +0800, Youling Tang wrote:
> The initial reason is that after the merger of 29fe5067ed07 ("kexec: make
> -a the default"), kexec cannot be used on LoongArch architectures. We need
> to add "-c" for normal use. The current kexec_file_load system call is not
> implemented in architectures such as LoongArch, so it needs to pass kexec_load.
> So we need to set __NR_kexec_file_load to undefined in unsupported architectures.
> This will return EFALLBACK via is_kexec_file_load_implemented, and then via
> kexec_load.
>
> Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Thanks, applied.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2 2/2] LoongArch: kdump: Set up kernel image segment
[not found] ` <1677899351-31098-2-git-send-email-tangyouling@loongson.cn>
@ 2023-03-08 12:51 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2023-03-08 12:51 UTC (permalink / raw)
To: Youling Tang; +Cc: kexec, Philipp Rudo
On Sat, Mar 04, 2023 at 11:09:11AM +0800, Youling Tang wrote:
> On LoongArch, we can use the same kernel image as 1st kernel when
> 3f89765d622 ("LoongArch: kdump: Add single kernel image implementation")
> is merged, but we have to modify the entry point as well as segments
> addresses in the kernel elf header (or PE format vmlinux.efi) in order
> to load them into correct places.
>
> Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Thanks, applied.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-08 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1677899351-31098-1-git-send-email-tangyouling@loongson.cn>
2023-03-08 12:50 ` [PATCH v2 1/2] kexec: __NR_kexec_file_load is set to undefined on LoongArch Simon Horman
[not found] ` <1677899351-31098-2-git-send-email-tangyouling@loongson.cn>
2023-03-08 12:51 ` [PATCH v2 2/2] LoongArch: kdump: Set up kernel image segment Simon Horman
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.