WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [PATCH 0 of 9] Call hotplug scripts from libxl

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH 0 of 9] Call hotplug scripts from libxl
From: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Date: Tue, 4 Oct 2011 16:15:02 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 04 Oct 2011 07:15:37 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=fkW7EayzrDg0HN4w7Tk8RtYk3Ogo23NDbol+8KfDR6Y=; b=Hryy885cJbKs1GqvGo4a400sqFnLwdsLn7J35H+kn4fbcgxVbNEaKmnfAFkaCEL1jj bFfoQWn5EDpBDACEJN50OdBCEGtxfgKD1DSfd9K8DkTZzgcYN0Phumf8O/GpIdVdhW58 4yFsdc55g0c+yNDoYpPa8DkwHKYVfRy/XQFCQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1317735234.21903.141.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>
References: <patchbomb.1317386580@loki> <CAPLaKK7cbZG5SnCKdi7DaivNWmz6Ojj5NzFkQ=Wo-jL3RYEQKA@xxxxxxxxxxxxxx> <1317735234.21903.141.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
2011/10/4 Ian Campbell <Ian.Campbell@xxxxxxxxxx>:
> By default xl daemonises itself and monitors the domain waiting for it
> to exit, at which point it should perform the necessary cleanup (this is
> the call to libxl_domain_destroy in handle_domain_death).

libxl daemonises itself if you call "xl shutdown <domain>", but if the
domain shuts down from inside (doing a "halt"), xl is never called,
and therefore hotplug scripts are not executed.

> If you ask xl to not do this (using the -e or -F options) then you are
> expected to call xl destroy yourself.
>
> The call to libxl_domain_destroy calls libxl__devices_destroy which
> tears down the backends. Unfortunately this is done in a slightly
> generic way but my recent series should have laid the ground work for
> doing this in a more device-specific way.
>
> I have a feeling that libxl__device_destroy should really consist of a
> sequence of libxl_device_FOO_list+foreach(thing) libxl_device_FOO_remove
> calls rather than the current mechanism. i.e. be really explicit about
> what it is tearing down.
>
> Ian.

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