aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/suspend.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2010-05-14 07:45:07 -0400
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-07-22 19:46:21 -0400
commit016b6f5fe8398b0291cece60b749d7c930a2e09c (patch)
tree430e9aad74f223dc5d144b60f4b78a0c3fb9cdfd /arch/x86/xen/suspend.c
parent183d03cc4ff39e0f0d952c09aa96d0abfd6e0c3c (diff)
xen: Add suspend/resume support for PV on HVM guests.
Suspend/resume requires few different things on HVM: the suspend hypercall is different; we don't need to save/restore memory related settings; except the shared info page and the callback mechanism. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/xen/suspend.c')
-rw-r--r--arch/x86/xen/suspend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c
index a9c661108034..d07479c340f5 100644
--- a/arch/x86/xen/suspend.c
+++ b/arch/x86/xen/suspend.c
@@ -26,6 +26,12 @@ void xen_pre_suspend(void)
26 BUG(); 26 BUG();
27} 27}
28 28
29void xen_hvm_post_suspend(int suspend_cancelled)
30{
31 xen_hvm_init_shared_info();
32 xen_callback_vector();
33}
34
29void xen_post_suspend(int suspend_cancelled) 35void xen_post_suspend(int suspend_cancelled)
30{ 36{
31 xen_build_mfn_list_list(); 37 xen_build_mfn_list_list();