[PATCH 4/4 -mm] kexec based hibernation -v7 : kimgcore
huang ying
huang.ying.caritas at gmail.com
Fri Dec 7 08:56:18 EST 2007
On Dec 7, 2007 8:33 PM, Rafael J. Wysocki <rjw at sisk.pl> wrote:
> On Friday, 7 of December 2007, Huang, Ying wrote:
> > This patch adds a file in proc file system to access the loaded
> > kexec_image, which may contains the memory image of kexeced
> > system. This can be used by kexec based hibernation to create a file
> > image of hibernating kernel, so that a kernel booting process is not
> > needed for each hibernating.
>
> Hm, I'm not sure what you mean.
>
> Can you explain a bit, please?
The normal kexec based hibernation procedure is as follow:
1. kexec_load the kernel image and initramfs
2. jump to hibernating kernel
3. the normal boot process of kexeced kernel
4. jump back to hibernated kernel
5. execute ACPI methods
6. jump to hibernating kernel
7. write memory image of hibernated kernel
8. go to ACPI S4 state
With kimgcore:
A. Prepare a memory image of hibernation kernel:
A.1 kexec_load the kernel image and initramfs
A.2 jump to hibernating kernel
A.3 the normal boot process of kexeced kernel
A.4 jump back to hibernated kernel
A.5 save the memory image of hibernating kernel via kimgcore
The normal hibernate process is as follow:
1. kexec load the kimgcore of hibernatin kernel
2. jump to the hibernating kernel
3. execute ACPI methods
4. jump to hibernating kernel
5. write memory image of hibernated kernel
6. go to ACPI S4 state
So the boot process of hibernating kernel needs only once unless the
hardware configuration is changed.
Best Regards,
Huang Ying
More information about the kexec
mailing list