public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH -mm 0/4] Hibernation: Arbitrary boot kernel support on x86_64
@ 2007-08-20 13:10 Rafael J. Wysocki
  2007-08-20 13:11 ` [RFC][PATCH -mm 1/4] " Rafael J. Wysocki
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Rafael J. Wysocki @ 2007-08-20 13:10 UTC (permalink / raw)
  To: pm list; +Cc: discuss, Nigel Cunningham

Hi,

After the kexec hibernation discussion I started to think what it would take to
change the restore code so that a hibernation image could be loaded and
restored with the help of a kernel different from the image one.  As a result,
I have created the following series of patches.

Except for that being an interesting problem, my motivation to do it is
two-fold.  First, it will allow us to eliminate the (annoying) requirement to
use the same kernel for hibernation and restore.  Second, it will allow us to
carry out the restore in a more or less ACPI-compliant way, by using an
ACPI-less kernel as the boot one.

As you can see in the patches, it doesn't take a lot of code to do that,
although conceptually it is a bit compilcated.  The first patch is the
essential one, as it contains all of the necessary bits.  The second one
makes the ACPI restore code work if ACPI has not been enabled during boot
before loading the image.  The last two patches are auxiliary, although they
improve the flexibility of the restore code.

Comments welcome.

Greetings,
Rafael


-- 
"Premature optimization is the root of all evil." - Donald Knuth

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-08-22 20:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-20 13:10 [RFC][PATCH -mm 0/4] Hibernation: Arbitrary boot kernel support on x86_64 Rafael J. Wysocki
2007-08-20 13:11 ` [RFC][PATCH -mm 1/4] " Rafael J. Wysocki
2007-08-21  7:57   ` Pavel Machek
2007-08-21 14:37     ` [discuss] " Rafael J. Wysocki
2007-08-21 19:30       ` Rafael J. Wysocki
2007-08-21 20:47         ` Rafael J. Wysocki
2007-08-20 13:16 ` [RFC][PATCH -mm 2/4] Hibernation: Turn on ACPI during restore if necessary Rafael J. Wysocki
2007-08-21  7:57   ` Pavel Machek
2007-08-21 14:39     ` Rafael J. Wysocki
2007-08-21 23:36       ` Pavel Machek
2007-08-22 20:47         ` [discuss] " Rafael J. Wysocki
2007-08-20 13:17 ` [RFC][PATCH -mm 3/4] Hibernation: Use temporary kernel text mapping during restore on x86_64 Rafael J. Wysocki
2007-08-21  7:59   ` Pavel Machek
2007-08-21 14:42     ` Rafael J. Wysocki
2007-08-20 13:18 ` [RFC][PATCH -mm 4/4] Hibernation: Pass CR3 value in hibernation header " Rafael J. Wysocki
2007-08-21  8:01   ` Pavel Machek
2007-08-21 14:46     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox