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] [PATCH] add domain creation/shutdown script execution su

To: Steve Kemp <steve@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] add domain creation/shutdown script execution support.
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 14 Mar 2007 23:26:48 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 Mar 2007 16:25:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070307093748.GA24691@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070306135628.GA14559@xxxxxxxxxxxx> <200703070050.39420.mark.williamson@xxxxxxxxxxxx> <20070307093748.GA24691@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
> > I'm really glad you've taken the initiative on this, it has the potential
> > to give us some very powerful functionality quite cheaply.
>
>   I will endeavor to find some free time over the weekend to have a
>  play with the xenstored code, and see if I can watch events from it.
>  No promises at all, but if I get anywhere I'll post an update.
>
>   Right now I can use "xenstore-ls" to get a snapshot, and I guess
>  I could do that every five seconds or so to be able to detect newly
>  created domains, and existing ones which have been shutdown.
>  That's not ideal, but for a first pass should let me get something
> working.

Should be interesting for prototyping, yes!

>   Downside is I'd probably have to write the daemon in python to
>  get it into the core, right?

Not necessarily; there is a C interface to Xenstore and some of the other code 
(e.g. I think the console daemon) is written in C.  Xend is mostly Python but 
if you can cleanly code as a separate daemon then Python isn't strictly 
necessary.

Cheers,
Mark

> > There's some information on it in the Wiki.  Essentially it gives you a
> > hierarchical namespace describing the state of the management tools and
> > the domains running.  This namespace is populated by (largely)
> > human-readable name=value pairs.
>
>   Great.
>
> > I'll continue thinking about how best to accomplish it in the meantime...
> >
>   :)
> >
> > It'll be interesting to see where we can go with this...
>
>   Agreed.
>
> Steve

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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