kernel-fxtec-pro1x/arch/x86/xen
Jeremy Fitzhardinge 0e91398f2a xen: implement save/restore
This patch implements Xen save/restore and migration.

Saving is triggered via xenbus, which is polled in
drivers/xen/manage.c.  When a suspend request comes in, the kernel
prepares itself for saving by:

1 - Freeze all processes.  This is primarily to prevent any
    partially-completed pagetable updates from confusing the suspend
    process.  If CONFIG_PREEMPT isn't defined, then this isn't necessary.

2 - Suspend xenbus and other devices

3 - Stop_machine, to make sure all the other vcpus are quiescent.  The
    Xen tools require the domain to run its save off vcpu0.

4 - Within the stop_machine state, it pins any unpinned pgds (under
    construction or destruction), performs canonicalizes various other
    pieces of state (mostly converting mfns to pfns), and finally

5 - Suspend the domain

Restore reverses the steps used to save the domain, ending when all
the frozen processes are thawed.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-05-27 10:11:38 +02:00
..
enlighten.c xen: implement save/restore 2008-05-27 10:11:38 +02:00
grant-table.c xen: make grant table arch portable 2008-04-24 23:57:32 +02:00
Kconfig xen: add configurable max domain size 2008-05-27 10:11:37 +02:00
Makefile xen: implement save/restore 2008-05-27 10:11:38 +02:00
mmu.c xen: implement save/restore 2008-05-27 10:11:38 +02:00
mmu.h xen: remove support for non-PAE 32-bit 2008-05-22 18:42:49 +02:00
multicalls.c x86: coding style fixes to arch/x86/xen/multicalls.c 2008-04-17 17:40:50 +02:00
multicalls.h xen: add batch completion callbacks 2007-10-16 11:51:30 -07:00
setup.c xen: add configurable max domain size 2008-05-27 10:11:37 +02:00
smp.c xen: implement save/restore 2008-05-27 10:11:38 +02:00
suspend.c xen: implement save/restore 2008-05-27 10:11:38 +02:00
time.c xen: implement save/restore 2008-05-27 10:11:38 +02:00
vdso.h
xen-asm.S xen: fold xen_sysexit into xen_iret 2008-04-24 23:57:33 +02:00
xen-head.S xen: remove support for non-PAE 32-bit 2008-05-22 18:42:49 +02:00
xen-ops.h xen: implement save/restore 2008-05-27 10:11:38 +02:00