RFC Hibernation: Arbitrary boot kernel support on x86_64
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Hibernation: Arbitrary boot kernel support on x86_64arch/ arch/ include/ +2 more | +150 | 4 replies | |
| 2/4 | Hibernation: Turn on ACPI during restore if necessarydrivers/ | +2 | 4 replies | |
| 3/4 | Hibernation: Use temporary kernel text mapping during restore on x86_64arch/ | +34 | 2 replies | |
| 4/4 | Hibernation: Pass CR3 value in hibernation header on x86_64arch/ arch/ | +17 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC][PATCH -mm 0/4] Hibernation: Arbitrary boot kernel support on x86_64
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
Signature · 1 line
"Premature optimization is the root of all evil." - Donald Knuth