Thread (6 messages) 6 messages, 4 authors, 2019-07-01

Re: [PATCH RFC] generic ELF support for kexec

flat view

From: Sven Schnelle <hidden>
Date: 2019-07-01 17:11:51
Also in: kexec, linux-s390

Hi Michael,

On Fri, Jun 28, 2019 at 12:04:11PM +1000, Michael Ellerman wrote:
Sven Schnelle [off-list ref] writes:
  https://github.com/linuxppc/wiki/wiki/Booting-with-Qemu

But I'm not sure where you get a version of kexec that uses kexec_file().
kexec-tools HEAD supports it, so that's not a problem.
quoted
If that change is acceptable i would finish the patch and submit it. I think
best would be to push this change through Helge's parisc tree, so we don't
have any dependencies to sort out.
That will work for you but could cause us problems if we have any
changes that touch that code.

It's easy enough to create a topic branch with just that patch that both
of us merge.
What should be the base branch for that patch? Christophe suggested the
powerpc/merge branch?
quoted
 #include <linux/elf.h>
 #include <linux/kexec.h>
 #include <linux/libfdt.h>
@@ -31,540 +29,6 @@
 #include <linux/slab.h>
 #include <linux/types.h>
 
-#define PURGATORY_STACK_SIZE	(16 * 1024)
This is unused AFAICS. We should probably remove it explicitly rather
than as part of this patch.
I have one patch right now. If wanted i can split up all the changes
suggested during the review into smaller pieces, whatever you prefer.
Or that.
quoted
+#include <linux/slab.h>
+#include <linux/types.h>
+
+#define elf_addr_to_cpu	elf64_to_cpu
Why are we doing that rather than just using elf64_to_cpu directly?
quoted
+#ifndef Elf_Rel
+#define Elf_Rel		Elf64_Rel
+#endif /* Elf_Rel */
And that?
Don't know - ask the PPC people :-)

Regards
Sven
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help