From: Tim Deegan Subject: Re: save image file format? and [RFC] tmem save/restore/migrate Date: Thu, 18 Jun 2009 13:05:58 +0100 Message-ID: <20090618120558.GJ16056@york.uk.xensource.com> References: <20090618085158.GE16056@york.uk.xensource.com> <20090618113924.GB17990@movementarian.org> <4A3A2CE1.2010100@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4A3A2CE1.2010100@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: Dan Magenheimer , "Xen-Devel (E-mail)" , Gianluca Guida , John Levon List-Id: xen-devel@lists.xenproject.org At 13:02 +0100 on 18 Jun (1245330161), Stefano Stabellini wrote: > At least in theory is certainly feasible: just a matter or registering > another savevm function for a record called "cpu" or "vcpu", that would > take care of saving the guest memory using xc_domain_save. Yuck. You still need to add a bunch of metadata from xend that qemu doesn't know about, so you'll have to wrap the qemu output in another file format already. Wrapping the memory image inside qemu's image is just layering for its own sake. (Also, using qemu to save a PV guests would be pretty wierd). > The qemu people are also maintaing save record compatibility now, so we > are safe from that perspective. Yes, but their code-defines-format model is rubbish. I've written a couple of tools that parse HVM save file info based on the Xen public headers; doing the same for a qemu-style implicit format is a PITA. Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]