aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c')
-rw-r--r--linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c
index 83fec94857..ff56d12631 100644
--- a/linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c
+++ b/linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c
@@ -94,6 +94,13 @@ static void __do_suspend(void)
HYPERVISOR_suspend(virt_to_machine(suspend_record) >> PAGE_SHIFT);
+ HYPERVISOR_vm_assist(VMASST_CMD_enable,
+ VMASST_TYPE_4gb_segments);
+#ifdef CONFIG_XEN_WRITABLE_PAGETABLES
+ HYPERVISOR_vm_assist(VMASST_CMD_enable,
+ VMASST_TYPE_writeable_pagetables);
+#endif
+
shutting_down = -1;
memcpy(&start_info, &suspend_record->resume_info, sizeof(start_info));