From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: watch event for die domain ? Date: Sun, 11 Sep 2005 11:26:46 +1000 Message-ID: <1126402006.21731.23.camel@localhost.localdomain> References: <5d7aca95050910071574eed9b@mail.gmail.com> <3d8eece205091016531b985986@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3d8eece205091016531b985986@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christian.Limpach@cl.cam.ac.uk Cc: nahieu@gmail.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sun, 2005-09-11 at 00:53 +0100, Christian Limpach wrote: > On 9/10/05, NAHieu 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/, 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