Messages in this thread | | | From | (Eric W. Biederman) | Date | Thu, 15 May 2008 19:55:44 -0700 | Subject | Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load |
| |
"Huang, Ying" <ying.huang@intel.com> writes:
> The disadvantage of this solution is that kernel B must know it is > original kernel (A) or kexeced kernel (B). Different code should be used > by kernel A and kernel B. And after jump from A to B, jump from B to A, > when jump from A to B again, kernel A must use different code from the > first time.
I don't know what the case is for keeping two kernels in memory and switching between them.
I suspect a small piece of trampoline code between the two kernels could handle the case. (i.e. purgatory pays attention).
That is a fundamental aspect of the design. A general purpose infrastructure with trampoline code to adapt it to whatever situation comes up.
Eric
| |