From: Tim Deegan Subject: Re: Xen Save File - VM's memory image Date: Tue, 14 Jul 2009 17:53:07 +0100 Message-ID: <20090714165307.GC5235@york.uk.xensource.com> References: <67bf56480907131010r7959b37g7ef78b98708bdbb5@mail.gmail.com> <20090714085626.GB5235@york.uk.xensource.com> <67bf56480907140936y3489fa7dscc608a7813d100f4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <67bf56480907140936y3489fa7dscc608a7813d100f4@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 At 17:36 +0100 on 14 Jul (1247592971), Amin Firoozshahian wrote: > Thanks so much for the prompt reply. I was wondering whether I can > re-use the same Load VM code and redirect the output of the section > which refills the VM's memory to another file. The order of pages > (frames?) is not important in my experiment. If you think this is a > good approach, can you please point me to the appropriate file in the > Xen source that actually contains the code for reads and reloading the > save file? Yes, just hacking the load code should be fine for what you want. :) The main part of it is xc_domain_restore() in tools/libxc/xc_domain_restore.c. You'll also need to strip off Xend's metadata records from the beginning of the file before running that code. Cheers, Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]