This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] Domains not being destroyed properly

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Domains not being destroyed properly
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Tue, 21 Jun 2011 18:01:32 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Anthony Wright <anthony@xxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Tue, 21 Jun 2011 10:06:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=yeZgGu2Bjw/IGP3EdPZJru8ARZVDr/8J7YBP3x+NnXw=; b=jZCmewSBxEbloYuDqi+uPTTDckkBnEah6o31ZOEWzAHKQfBNtbprnIOM4aaEMmWWMx 8tmq6HvsVz8tufE7i7MA6zXcYtxA/gm4GSahni3Q0Agaz/hbg6bccKUA/srneyJX8G8I mJVJQiKq5Sdqfws8VMqDh/Jxp72Msecgx6veI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=b5fB9N8IOG/5Eg9e/Bbhs1hva1sQ+uwI7GAi1KJ9msGgkWi7fnqD1mVv+H5IL5Hbjc nK1MaLYrs7ISIU522rfjnLwNJotCVKa/dcuyKk9u1h3b8C/icALb0shXCU4kI5eTOKg7 tMFADOt6d/993RiI+ZJQ6fTRTryHIcKl1r61w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1308674526.6920.103.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwwNN64+BRDWf6tS0aBhJE8onN5nA==
Thread-topic: [Xen-devel] Domains not being destroyed properly
User-agent: Microsoft-Entourage/
On 21/06/2011 17:42, "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx> wrote:

> On Tue, 2011-06-21 at 17:26 +0100, 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 wondered that and handwaved it to myself as being the
> HLT-with-interrupt-disabled logic kicking in and shutting down the guest
> but now that I look it seems that this just triggers a domain shutdown
> event to dom0 and doesn't actually destroy the domain (which is actually
> as expected before I handwaved). So I'm a bit surprised again now too.

A domain can only be destroyed via the destroydomain domctl from dom0.

 -- Keir

> Ian.
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Xen-devel mailing list