kexec and relocatable kernels
H. Peter Anvin
hpa at zytor.com
Mon Jan 10 17:06:24 EST 2011
I received a query last week regarding kexec's handling of relocatable
kernels. In particular, it appears that kexec does not take advantage
of relocatable kernels -- except for kdump -- in avoiding low memory holes.
The system in question had an issue with a low memory hole in the
14-16 MiB range, which caused the kernel to crash on decompress. They
have a hack in their bootloader to avoid that memory range (that's a
problem in itself and another issue, but the bottom line is that all
bootloaders, not just kexec, needs this awareness.)
Since bzImage 2.10, the kernel gives enough information that the
bootloader (including kexec) can reliably find a place for the kernel
away from memory holes, or fail if no acceptable memory exists.
On another subject, there has been an increasing tendency to put
utilities which are by their nature tightly coupled with the kernel into
the kernel source tree. I'm kind of thinking that kexec might fit that
bill, what do you think?
More information about the kexec