Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Huang, Ying <ying.huang@...>
Cc: Pavel Machek <pavel@...>, <nigel@...>, Andrew Morton <akpm@...>, Jeremy Maitin-Shepard <jbms@...>, <linux-kernel@...>, <linux-pm@...>, Kexec Mailing List <kexec@...>
Date: Friday, September 21, 2007 - 12:01 am

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


Please the kexec_jump code just be triggered off of a flag in
struct kimage.  We just need to define an extra flag to sys_kexec_load
say KEXEC_RETURNS.  Ideally in the long term we would not have to
do anything except to accept the flag.  Adding a flag makes
a nice feature test if you want to see if your kernel supports
the extended version of kexec.

Until we get the hibernation methods sorted out storing the flag in
struct kimage and making the methods that we call conditional feels
like a more maintainable interface.  Especially since we have to
know at kexec image load time what we are going to do with the
kexec image.


I understand where you are coming from with this implementation of
kexec_jump but it looks like this is one of the big parts of this
patch that have not reached their final form.

The line above is racy with sys_kexec_load.


This as everyone knows needs to be device_shutdown or a better hibernation
replacement.


Can't we just catch the noboot cpu's in a mutex.
disable_nonboot_cpus is actually impossible to implement 100% reliably
with current hardware.  But something smp_call_function so we trap them
at a specific location and then the equivalent when we come back should
be simple.  I guess the tricky part is bringing the cpus back up again.

Using the broken by design version of cpu hotplug really annoys me here.


This of course should go away when we have the proper methods.

This line might even be reasonable.
Yep this can go away.

I haven't looked at the cpu start up code yet to see if it
is generally implementable.  I would think so, but I guess
we need to be careful with our data structures.

This of course should change.

Odd.  I'm a little surprised that the console is the last
thing we restore.  But it does make sense to treat it specially.


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

Messages in current thread:
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Fri Sep 21, 12:01 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Thu Sep 20, 10:55 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 8:10 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Rafael J. Wysocki, (Fri Sep 21, 7:56 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Rafael J. Wysocki, (Fri Sep 21, 8:18 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Thu Sep 20, 11:33 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 8:09 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 10:31 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 2:11 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 3:00 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 4:15 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 4:26 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 4:53 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 5:08 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 5:25 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 5:16 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Sat Sep 22, 6:34 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Sat Sep 22, 5:51 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Sat Sep 22, 6:40 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Wed Oct 24, 4:38 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 11:50 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Nigel Cunningham, (Thu Sep 20, 10:25 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Nigel Cunningham, (Thu Sep 20, 10:58 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Fri Sep 21, 12:46 am)