On Dec 7, 2007 8:52 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:Two blocking notifier chain named kjump_chain_pre and kjump_chain_post are defined, the basic procedure of kexec jump is as follow: call functions in kjump_chain_pre jump to peer kernel call functions in kjump_chain_post A command is the first parameter of functions in chain. If A command is processed in a function, the function will execute and stop the chain (return NOTIFY_STOP), otherwise it will do nothing (return NOTIFY_DONE). If no function has interest in the command, the default behavior will be executed (kexec_vcall_pre, kexec_vcall_post). So for each command the procedure is as follow: KJUMP_CMD_HIBERNATE_WRITE_IMAGE: [chain] kexec_snapshot jump to kexeced kernel [chain] kexec_prepare_write_image /* in kexeced kernel */ KJUMP_HIBERNATE_RESUME: [chain] kexec_prepare_resume /* in kexeced kernel */ jump to kexec kernel [chain] kexec_resume Yes, there are too many duplicated code. They should be merged. But I want to delay the merging until the kexec based hibernation code goes more stable. Now the kexec_lock is used as a mutex between kexec related operations. It seems reasonable to use pm_mutex and maybe snapshot_device_available to eliminate potential conflict between kexec based hibernation and u/swsusp. Best Regards, Huang Ying --
| FUJITA Tomonori | Re: Linux 2.6.25-rc4 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Artem Bityutskiy | [PATCH 11/44 take 2] [UBI] allocation unit header |
git: | |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
