From: Ian Campbell Subject: Re: Domains not being destroyed properly Date: Wed, 22 Jun 2011 09:02:32 +0100 Message-ID: <1308729752.6920.131.camel@zakaz.uk.xensource.com> References: <4DFB3A90.70707@overnetdata.com> <1308657108.6920.25.camel@zakaz.uk.xensource.com> <4E009530.2040108@overnetdata.com> <20110621133908.GE5650@dumpdata.com> <4E00B019.5090108@overnetdata.com> <1308671090.6920.89.camel@zakaz.uk.xensource.com> <19968.50764.426693.131975@mariner.uk.xensource.com> <20110621193502.GC39691@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110621193502.GC39691@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: "xen-devel@lists.xensource.com" , Ian Jackson , Anthony Wright , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On Tue, 2011-06-21 at 20:35 +0100, Tim Deegan wrote: > Hi, > > At 17:26 +0100 on 21 Jun (1308677212), Ian Jackson wrote: > > Ian Campbell writes ("Re: [Xen-devel] Domains not being destroyed properly"): > > > I suspect that you will probably find that only the hypervisor parts of > > > the domain are being cleaned up by killing qemu -- e.g. the xenstore > > > entries and some other stuff (e.g. libxl user data) are not being > > > cleaned up. > > > > It is puzzling that the hypervisor domain gets destroyed at all. What > > is making the destroy domain hypercall ? > > I suspect that xl destroy is doing it, but the domain can't actually > disappear until the last references to ist memory are dropped by > qemu-dm. Anthony reckons that just killing the qemu after an "xl shutdown" is sufficient, without an "xl destroy". I can't see anywhere that "xl shutdown" would issue the destroydomain hypercall though (which is expected, since it shouldn't be doing it). Ian.