From: Keir Fraser Subject: Re: [RFC] save image file format CHANGE (minor, but feedback appreciated) Date: Thu, 30 Jul 2009 23:42:23 +0100 Message-ID: References: <543bbd6d-0c17-41d1-84db-68592a60faf9@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <543bbd6d-0c17-41d1-84db-68592a60faf9@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" Cc: Tim Deegan , Gianluca Guida , Stefano Stabellini , John Levon Stefano List-Id: xen-devel@lists.xenproject.org On 30/07/2009 23:05, "Dan Magenheimer" wrote: > It appears that the "next negative number as marker" > mechanism only works for data that trails the last > iteration of (mapped) pages, and thus works only after > the domain has been suspended. (True?) No. It so happens that all such markers are emitted after saved pages right now, but you can see in xc_domain_restore.c that markers are detected right at the top of the read pages loop. You could add a new marker, emit it before any pages in xc_domain_save.c, and pick it up just fine in the restore loop. You'd read the rest of your stuff and act on it, then do a C 'continue' to kick off the next loop iteration, which would presumably start reading ordinary saved memory pages. Your patch is definitely not required. -- Keir