login
Header Space

 
 

Re: [linux-pm] [PATCH -mm] kexec jump -v9

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alan Stern <stern@...>
Cc: Rafael J. Wysocki <rjw@...>, Pavel Machek <pavel@...>, Eric W. Biederman <ebiederm@...>, Kexec Mailing List <kexec@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, <linux-pm@...>, Vivek Goyal <vgoyal@...>, Len Brown <len.brown@...>
Date: Friday, March 21, 2008 - 6:05 pm

Hi.

On Thu, 2008-03-20 at 20:52 -0400, Alan Stern wrote:

It's possible.

1) When hibernating, allocate a page (or pages if one isn't enough) for
the data to end up in after the atomic restore.
2) Put the location(s) in the image header.
3) At resume time, allocate an equivalent number of extra 'safe' pages
and set up extra pbes for the atomic restore to copy data from the extra
pages to the ones allocated when hibernating.
4) At the appropriate point in time, copy the NVS data to the extra
'safe' pages allocated in step 3.

The data will then be available to the resumed kernel post-resume.

I've been using this method to pass data from the boot kernel to the
resumed kernel for a while now. (I'm using it for I/O speed statistics
and state preservation).

Regards,

Nigel

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

Messages in current thread:
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Pavel Machek, (Thu Mar 20, 6:40 am)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Thu Mar 20, 6:45 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Alan Stern, (Thu Mar 20, 7:01 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Pavel Machek, (Thu Mar 20, 7:22 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Thu Mar 20, 7:40 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Alan Stern, (Thu Mar 20, 8:52 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Pavel Machek, (Sat Mar 22, 12:21 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Sat Mar 22, 1:45 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Alan Stern, (Sat Mar 22, 4:49 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Sat Mar 22, 5:29 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Eric W. Biederman, (Wed May 14, 6:38 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Wed May 14, 7:47 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Eric W. Biederman, (Thu May 15, 4:55 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Thu May 15, 5:20 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Nigel Cunningham, (Fri Mar 21, 6:05 pm)
Re: [linux-pm] [PATCH -mm] kexec jump -v9, Rafael J. Wysocki, (Thu Mar 20, 8:36 pm)
speck-geostationary