From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Limpach Subject: Re: watch event for die domain ? Date: Sun, 11 Sep 2005 00:53:37 +0100 Message-ID: <3d8eece205091016531b985986@mail.gmail.com> References: <5d7aca95050910071574eed9b@mail.gmail.com> Reply-To: Christian.Limpach@cl.cam.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <5d7aca95050910071574eed9b@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: nahieu@gmail.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.=20 There's also @introduceDomain for when xenstored maps the page after the domain was created. > If not, I must periodically scan the domains (using libxc interface) > to detect if a domain dies, but that is not as good as xenbus > approach. Yeah, polling is definitely not the way to go ;-) christian