From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Cully Subject: [PATCH 0 of 4] Enable domain checkpointing via xm save --checkpoint Date: Tue, 27 Feb 2007 22:38:19 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Here's take two of xm save --checkpoint. It puts suspend_cancel into a standalone elfnote. I noticed an off-by-one in my xc.c code to import elfnotes when I did this; the fix is included here. >>From the last post: The attached patches create a --checkpoint flag for xm save: xc_domain_resume lets the caller alert the guest that it is being resumed. Callers should not do this unless they know the guest supports the operation. When xend wants to resume a domain, it checks for the suspend_cancel elfnote from the notes it has recorded from domain build or resume. If the flag is present, it simply lets the guest handle resuming, otherwise it tears down and rebuilds the domain and lets the guest act as if it is resuming in a new domain. A new suspend_cancel elfnote is added with value 1.