From: Ewan Mellor Subject: Re: Question about xm save Date: Mon, 12 Mar 2007 08:57:49 +0000 Message-ID: <20070312085749.GA3700@leeni.uk.xensource.com> References: <200703120853.40112.dietmar.hahn@fujitsu-siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200703120853.40112.dietmar.hahn@fujitsu-siemens.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: Dietmar Hahn Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Mar 12, 2007 at 08:53:40AM +0100, Dietmar Hahn wrote: > Hi, > > I'm trying to understand what's going on while calling 'xm save ...'. > I looked through the sources and found in xend stuff: > XendCheckpoint.py -> saveInputHandler() -> dominfo.shutdown('suspend') > This makes an entry in the xenstore: > control = "" > shutdown = "suspend" > The function dominfo.waitForShutdown() is startet and waits for an event. > In parallel (with the forkHelper) the command > '/usr/lib/xen/bin/xc_save 21 1 0 0 0' is started and never returns. > What I miss is the connection between these both things. > Can anybody give me a hint? > (For the tests I simply added some tracer in the python scripts and startet > the mini-os.) > Many thanks in advance! Xend is waiting for the guest to suspend, at which point it will write back to xc_save, and then the save will complete. Your guest is not suspending, by the looks of it. Ewan.