[RFC][PATCH -mm 0/4] Hibernation: Arbitrary boot kernel support on x86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux