From: Tim Deegan Subject: Re: Xen Save File - VM's memory image Date: Tue, 14 Jul 2009 09:56:26 +0100 Message-ID: <20090714085626.GB5235@york.uk.xensource.com> References: <67bf56480907131010r7959b37g7ef78b98708bdbb5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <67bf56480907131010r7959b37g7ef78b98708bdbb5@mail.gmail.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: Amin Firoozshahian Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi, At 18:10 +0100 on 13 Jul (1247508644), Amin Firoozshahian wrote: > I'm sorry for posting this to the developer's mailing list, but I'm > almost sure that no one in the user list would be able to help me. I'm > experimenting with a few VMs and I need to have access to the contents > of the VMs (physical) memory that is written in the save file. I read > on the mailing archives that there's no documentation on the save file > format (right?). I was wondering can anyone help me by pointing me to > the location in the save file that is the start of VM's memory image > (e.g. X byes from the beginning/end of the file). The following: > > http://lists.xensource.com/archives/html/xen-devel/2009-06/msg00839.html > > mentions that someone (Tim?) has developed a set of tools for > parsing the save file. Would it be possible for me to have access to > those tools and use them to extract the contents of the VM's memory? Sorry, the tools referred to there are for parsing Xen's HVM-state record, not libxc's VM save format. For that the only documentation is the code. :( The memory image is not contiguous in the file, nor even in order; to get at it you'll have to strip off the xend metadata from the head of the file and then follow the xc_domain_save code to see what other fields to throw away until you get to the memory area. It's saved as lists of frame numbers followed by their contents. Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]