WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 4 of 5] Set SIF_RESUMABLE flag in suspend

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 4 of 5] Set SIF_RESUMABLE flag in suspend
From: Brendan Cully <brendan@xxxxxxxxx>
Date: Fri, 12 Jan 2007 15:03:11 -0700
Delivery-date: Fri, 12 Jan 2007 15:08:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1168642987@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1168642944 28800
# Node ID 8c3139592f4d99d7ce1ca4e4e00792b00fc323b4
# Parent  ebdc01d032e8656c130ed945ce54f08108f42c73
Set SIF_RESUMABLE flag in suspend.

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>

diff -r ebdc01d032e8 -r 8c3139592f4d 
linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c    Fri Jan 12 
15:02:24 2007 -0800
+++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c    Fri Jan 12 
15:02:24 2007 -0800
@@ -83,6 +83,7 @@ static void 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);
+       xen_start_info->flags |= SIF_RESUMABLE;
 }
 
 static void post_suspend(int reconnect)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel