OpenCloudOS-Kernel/drivers/xen/xenbus
Shriram Rajagopalan b3e96c0c75 xen: use freeze/restore/thaw PM events for suspend/resume/chkpt
Use PM_FREEZE, PM_THAW and PM_RESTORE power events for
suspend/resume/checkpoint functionality, instead of PM_SUSPEND
and PM_RESUME. Use of these pm events fixes the Xen Guest hangup
when taking checkpoints. When a suspend event is cancelled
(while taking checkpoints once/continuously), we use PM_THAW
instead of PM_RESUME. PM_RESTORE is used when suspend is not
cancelled. See Documentation/power/devices.txt and linux/pm.h
for more info about freeze, thaw and restore. The sequence of
pm events in a suspend-resume scenario is shown below.

        dpm_suspend_start(PMSG_FREEZE);

                dpm_suspend_noirq(PMSG_FREEZE);

                       sysdev_suspend(PMSG_FREEZE);
                       cancelled = suspend_hypercall()
                       sysdev_resume();

               dpm_resume_noirq(cancelled ? PMSG_THAW : PMSG_RESTORE);

       dpm_resume_end(cancelled ? PMSG_THAW : PMSG_RESTORE);

Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2011-03-16 13:42:56 -04:00
..
Makefile xen: add backend driver support 2011-01-05 16:29:58 -05:00
xenbus_client.c xenbus: Xen paravirtualised PCI hotplug support. 2010-10-18 10:49:35 -04:00
xenbus_comms.c xen/xenbus: cleanup debug noise in xenbus_comms.c 2011-01-05 16:30:42 -05:00
xenbus_comms.h xen: add the Xenbus sysfs and virtual device hotplug driver 2007-07-18 08:47:45 -07:00
xenbus_probe.c xen: xenbus PM events support 2011-03-16 13:06:29 -04:00
xenbus_probe.h xen: xenbus PM events support 2011-03-16 13:06:29 -04:00
xenbus_probe_backend.c xen/xenbus: fixup checkpatch issues in xenbus_probe* 2011-01-05 16:31:08 -05:00
xenbus_probe_frontend.c xen: use freeze/restore/thaw PM events for suspend/resume/chkpt 2011-03-16 13:42:56 -04:00
xenbus_xs.c Merge branch 'xen/xenbus' into upstream/xen 2010-08-04 14:49:24 -07:00