Re: [lkcd-devel] Re: What's left over.

Alan Cox
2002-11-10T14:04:50Z

On Sun, 2002-11-10 at 02:58, Eric W. Biederman wrote:
> > What I'm trying to say is that I think the new kernel must
> > already be loaded when the panic happens.
> > Is that what you describe later (below)?
>
> Yes that was my meaning. The new kernel must be preloaded.
> And only started on panic.

Another question from the point of view of unifying things. What is
wrong with

insmod kexec
creates /dev/kexec (or kexecfs is you are Al Viro)
hooks the reboot and panic final notifiers
user copies file to /dev/kexec (which stuffs it into ram)

reboot
kexec module handler jumps to the first page of the
kexec data in a defined state assuming its PIC

At which point we have clearly reduced kexec/oops reporter/lkcd/netdump
to a single common tiny interface.