-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 99559 b: refs/heads/master c: 0e91398 h: refs/heads/master i: 99557: eeb4a9a 99555: 867a140 99551: d6ee163 v: v3
- Loading branch information
Jeremy Fitzhardinge
authored and
Thomas Gleixner
committed
May 27, 2008
1 parent
b6ab99b
commit 135e880
Showing
15 changed files
with
319 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 7d88d32a4670af583c896e5ecd3929b78538ca62 | ||
refs/heads/master: 0e91398f2a5d4eb6b07df8115917d0d1cf3e9b58 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
obj-y := enlighten.o setup.o multicalls.o mmu.o \ | ||
time.o xen-asm.o grant-table.o | ||
time.o xen-asm.o grant-table.o suspend.o | ||
|
||
obj-$(CONFIG_SMP) += smp.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include <linux/types.h> | ||
|
||
#include <xen/interface/xen.h> | ||
#include <xen/grant_table.h> | ||
#include <xen/events.h> | ||
|
||
#include <asm/xen/hypercall.h> | ||
#include <asm/xen/page.h> | ||
|
||
#include "xen-ops.h" | ||
#include "mmu.h" | ||
|
||
void xen_pre_suspend(void) | ||
{ | ||
xen_start_info->store_mfn = mfn_to_pfn(xen_start_info->store_mfn); | ||
xen_start_info->console.domU.mfn = | ||
mfn_to_pfn(xen_start_info->console.domU.mfn); | ||
|
||
BUG_ON(!irqs_disabled()); | ||
|
||
HYPERVISOR_shared_info = &xen_dummy_shared_info; | ||
if (HYPERVISOR_update_va_mapping(fix_to_virt(FIX_PARAVIRT_BOOTMAP), | ||
__pte_ma(0), 0)) | ||
BUG(); | ||
} | ||
|
||
void xen_post_suspend(int suspend_cancelled) | ||
{ | ||
if (suspend_cancelled) { | ||
xen_start_info->store_mfn = | ||
pfn_to_mfn(xen_start_info->store_mfn); | ||
xen_start_info->console.domU.mfn = | ||
pfn_to_mfn(xen_start_info->console.domU.mfn); | ||
} else { | ||
#ifdef CONFIG_SMP | ||
xen_cpu_initialized_map = cpu_online_map; | ||
#endif | ||
} | ||
|
||
xen_setup_shared_info(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.