Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- Date: Thu, 15 May 2008 20:33:41 -0700
- From: ebiederm@xxxxxxxxxxxx (Eric W. Biederman)
- Subject: Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
"Huang, Ying" <ying.huang@xxxxxxxxx> writes:
> I think it is reasonable to enable jumping back and forth more than one
> time.
I'm not opposed. I just don't understand the utility yet.
> So the following should be possible:
>
> 1. Jump from A to B (actually jump to purgatory, trigger the boot of B)
> 2. Jump from B to A
> 3. Jump from A to B again (jump to the kexec_jump_back_entry of B)
(And we go through purgatory which remembers
the kexec_jump_back_entry of B)
> 4. Jump from B to A
> ...
>
> So it should be possible to get the re-entry point of kernel B in
> kexec_jump_back_entry of kernel A too. So I think in
> kexec_jump_back_entry, the caller's stack should be checked to get
> re-entry point of peer. And the stack state is different depend on where
> come from, from relocate_new_kernel() or return.
Yes.
Any conditional logic needs to be in purgatory or a similar trampoline.
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Huang, Ying
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Vivek Goyal
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Huang, Ying
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Vivek Goyal
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Huang, Ying
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Eric W. Biederman
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Huang, Ying
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Eric W. Biederman
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Huang, Ying
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Eric W. Biederman
- Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- From: Huang, Ying
- [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- Prev by Date: Re: [PATCH] init - fix building bug and potential buffer overflow
- Next by Date: Re: [PATCH 2/2] x86: per-device dma_mapping_ops support
- Previous by thread: Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- Next by thread: Re: [PATCH] kexec based hibernation: a prototype of kexec multi-stage load
- Index(es):