Re: kexec (was: [lkcd-devel] Re: What's left over.)

Bill Davidsen
2002-11-11T16:58:40Z

On 7 Nov 2002, Andy Pfiffer wrote:

> Just an idea:
>
> Could a new, unrunnable process be created to "hold" the image?
>
> <hand-wave>
> Use a hypothetical sys_kexec() to:
> 1. create an empty process.
> 2. copy the kernel image and parameters into the processes' address
> space.
> 3. put the process to sleep.
> </hand-wave>
>
> If it's floating out there for weeks or years, the data could get paged
> out and not wired down. It would show up in ps, so you'd have at least
> some visibility into the allocation.

The only problem is that if you wanted it to run on panic, you really
couldn't trust the burning embers of a dying kernel to pull in the pages
and run them. I'd actually hope the init (and some cleanup??) code would
be there to get the new kernel going. Where kernel could be something
other than another kernel, hopefully.

--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.