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] watch event for die domain ?

On Sun, 2005-09-11 at 00:53 +0100, Christian Limpach wrote:
> On 9/10/05, NAHieu <nahieu@xxxxxxxxx> wrote:
> > I am writing a small application to watch for xenstore events. I want
> > to know when a specific domain shutdown or reboot. It is best to watch
> > it via xenbus interface, but how? Is there any event or node can give
> > me such an event?
> 
> You can have a watch on @releaseDomain, the watch will fire whenever
> xenstored unmaps the store page it has mapped from the domain. 
> There's also @introduceDomain for when xenstored maps the page after
> the domain was created.

Speaking of which, I have a patch which changes over introduce/release
to a write/rm in /tool/xenstored/domain/<id>, so this will combine
nicely, too.  (Part of the patch series to make xenstored restartable).

This is probably more generically useful, and avoids turning xenstored
into an event mechanism 8)

Cheers,
Rusty.
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman


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

<Prev in Thread] Current Thread [Next in Thread>