Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-18 Thread Huang, Ying
On Tue, 2007-12-11 at 02:27 -0700, Eric W. Biederman wrote: > "Huang, Ying" <[EMAIL PROTECTED]> writes: > > > On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: > >> "Huang, Ying" <[EMAIL PROTECTED]> writes: > > [...] > >> > /* > >> > * Do not allocate memory (or fail in any way) in

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-18 Thread Huang, Ying
On Tue, 2007-12-11 at 02:27 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-11 Thread Huang, Ying
On Tue, 2007-12-11 at 02:27 -0700, Eric W. Biederman wrote: > "Huang, Ying" <[EMAIL PROTECTED]> writes: > > > On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: > >> "Huang, Ying" <[EMAIL PROTECTED]> writes: > > [...] > >> > /* > >> > * Do not allocate memory (or fail in any way) in

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-11 Thread Eric W. Biederman
"Huang, Ying" <[EMAIL PROTECTED]> writes: > On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: >> "Huang, Ying" <[EMAIL PROTECTED]> writes: > [...] >> > /* >> > * Do not allocate memory (or fail in any way) in machine_kexec(). >> > * We are past the point of no return, committed to

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-11 Thread Eric W. Biederman
Huang, Ying [EMAIL PROTECTED] writes: On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We are past the point of no return, committed to rebooting now. */

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-11 Thread Huang, Ying
On Tue, 2007-12-11 at 02:27 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: > "Huang, Ying" <[EMAIL PROTECTED]> writes: [...] > > /* > > * Do not allocate memory (or fail in any way) in machine_kexec(). > > * We are past the point of no return, committed to rebooting now. > > */ > > -NORET_TYPE void

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Eric W. Biederman
"Huang, Ying" <[EMAIL PROTECTED]> writes: > This patch implements the functionality of jumping between the kexeced > kernel and the original kernel. > > To support jumping between two kernels, before jumping to (executing) > the new kernel and jumping back to the original kernel, the devices >

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 17:31 -0500, Vivek Goyal wrote: > [..] > > > > -#define KEXEC_ON_CRASH 0x0001 > > -#define KEXEC_ARCH_MASK 0x > > +#define KEXEC_ON_CRASH 0x0001 > > +#define KEXEC_PRESERVE_CPU 0x0002 > > +#define KEXEC_PRESERVE_CPU_EXT 0x0004 > >

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 14:55 -0500, Vivek Goyal wrote: > On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: > > This patch implements the functionality of jumping between the kexeced > > kernel and the original kernel. > > > > Hi, > > I am just going through your patches and trying to

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Vivek Goyal
On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: > This patch implements the functionality of jumping between the kexeced > kernel and the original kernel. > > To support jumping between two kernels, before jumping to (executing) > the new kernel and jumping back to the original

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Vivek Goyal
On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: > This patch implements the functionality of jumping between the kexeced > kernel and the original kernel. > Hi, I am just going through your patches and trying to understand it. Don't understand many things. Asking is easy so here

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Vivek Goyal
On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: This patch implements the functionality of jumping between the kexeced kernel and the original kernel. Hi, I am just going through your patches and trying to understand it. Don't understand many things. Asking is easy so here you

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Vivek Goyal
On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: This patch implements the functionality of jumping between the kexeced kernel and the original kernel. To support jumping between two kernels, before jumping to (executing) the new kernel and jumping back to the original kernel,

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 14:55 -0500, Vivek Goyal wrote: On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: This patch implements the functionality of jumping between the kexeced kernel and the original kernel. Hi, I am just going through your patches and trying to understand

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 17:31 -0500, Vivek Goyal wrote: [..] -#define KEXEC_ON_CRASH 0x0001 -#define KEXEC_ARCH_MASK 0x +#define KEXEC_ON_CRASH 0x0001 +#define KEXEC_PRESERVE_CPU 0x0002 +#define KEXEC_PRESERVE_CPU_EXT 0x0004 +#define

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Eric W. Biederman
Huang, Ying [EMAIL PROTECTED] writes: This patch implements the functionality of jumping between the kexeced kernel and the original kernel. To support jumping between two kernels, before jumping to (executing) the new kernel and jumping back to the original kernel, the devices are put into

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We are past the point of no return, committed to rebooting now. */ -NORET_TYPE void machine_kexec(struct

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-08 Thread Eric W. Biederman
"Rafael J. Wysocki" <[EMAIL PROTECTED]> writes: >> I'm not kexec hacker... but maybe this is in good enough state to be >> merged? It is useful on its own: kexec jump and back means we can dump >> system then continue running, for example... > > As far as I'm concerned, patches [1/4] and [2/4]

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-08 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Pavel Machek wrote: > Hi! > > > This patch implements the functionality of jumping between the kexeced > > kernel and the original kernel. > > > > To support jumping between two kernels, before jumping to (executing) > > the new kernel and jumping back to the

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-08 Thread Pavel Machek
Hi! > This patch implements the functionality of jumping between the kexeced > kernel and the original kernel. > > To support jumping between two kernels, before jumping to (executing) > the new kernel and jumping back to the original kernel, the devices > are put into quiescent state, and the

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-08 Thread Pavel Machek
Hi! This patch implements the functionality of jumping between the kexeced kernel and the original kernel. To support jumping between two kernels, before jumping to (executing) the new kernel and jumping back to the original kernel, the devices are put into quiescent state, and the state

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-08 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Pavel Machek wrote: Hi! This patch implements the functionality of jumping between the kexeced kernel and the original kernel. To support jumping between two kernels, before jumping to (executing) the new kernel and jumping back to the original kernel,

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-08 Thread Eric W. Biederman
Rafael J. Wysocki [EMAIL PROTECTED] writes: I'm not kexec hacker... but maybe this is in good enough state to be merged? It is useful on its own: kexec jump and back means we can dump system then continue running, for example... As far as I'm concerned, patches [1/4] and [2/4] can go. The