From: "Jacob Gorm Hansen" Subject: Re: live saving of domU Date: Thu, 11 May 2006 10:25:00 +0200 Message-ID: References: <871640aa0605100840t14a9f9deqf5c9be99f56917b7@mail.gmail.com> <20060510163213.GF4954@leeni.uk.xensource.com> <44621BDD.9060401@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <44621BDD.9060401@us.ibm.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Liguori Cc: xen-devel , Ewan Mellor , Jayesh Salvi List-Id: xen-devel@lists.xenproject.org On 5/10/06, Anthony Liguori wrote: > Moreover, you cannot dump the state of a domain after a pause and expect > it to ever run again. > > Guests are aware of the physical addresses of the memory that's been > allocated to them. Because of this, to save a domain's state in a > restorable way you need the guest to "canonicalize" itself. The only > way to do this today is through a suspend operation which happens to be > a subop of shutdown. Shutdowns are non-recoverable so you cannot use > this as a snapshotting mechanism. > I've gotten a lot of requests for light weight checkpointing. AFAIK, > noone is actually working on it though. Hi, I've got this running for xenlinux, using self-checkpointing. I solve the canonicalization problem by having a radix-tree which maps mfns to offsets in the pfn->mfn table, and upon resume use this to remap all the page tables. It works both across the network and to a block device, as long as it's opened with O_DIRECT. I am working on bringing the patch up to date with Xen 3.0.2 at the moment. It would be great to have the driver model better support resume after suspend of xenbus and devices in the same domU. Jacob