login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Huang, Ying <ying.huang@...>
Cc: Pavel Machek <pavel@...>, <nigel@...>, Rafael J. Wysocki <rjw@...>, Andrew Morton <akpm@...>, Jeremy Maitin-Shepard <jbms@...>, <linux-kernel@...>, <linux-pm@...>, Kexec Mailing List <kexec@...>
Date: Tuesday, December 11, 2007 - 5:27 am

"Huang, Ying" <ying.huang@intel.com> writes:


Interesting.  We wind up preserving the code in between invocations.

I don't know about your particular issue, but I can see that clearly
we need a way to read values back from our target image.

And if we can read everything back one way to proceed is to read
everything out modify it and then write it back.

Amending a kexec image that is already stored may also make sense.

I'm not convinced that the var arg parameters make sense, but you
added them because of a real need.

The kexec function is split into two separate calls so that we can
unmount the filesystem the kexec image comes from before actually
doing the kexec.

If extensive user space shutdown or startup is needed I will argue
that doing the work in the sys_reboot call is the wrong place to
do it.  Although if a jump back is happening we should not need
much restart.

Can you generate a minimal patch with just the minimal necessary
support to return from a kexec operation?


That certainly seems interesting.  But that doesn't justify the vararg
part of this.


yes.


You were changing something that used to be a pointer back to a pointer
and I found that confusing.    See the last one or two commits to
machine_kexec_32.c for when this happened.  I get the feeling that we
need to put the page table creation logic into machine_kexec_prepare,
instead of in assembly.

Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump, Eric W. Biederman, (Mon Dec 10, 10:25 pm)
Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump, Eric W. Biederman, (Tue Dec 11, 5:27 am)
Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump, Rafael J. Wysocki, (Sat Dec 8, 8:19 pm)
Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump, Eric W. Biederman, (Sat Dec 8, 9:06 pm)
speck-geostationary