[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] watch event for die domain ?


  • To: nahieu@xxxxxxxxx
  • From: Christian Limpach <christian.limpach@xxxxxxxxx>
  • Date: Sun, 11 Sep 2005 00:53:37 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 10 Sep 2005 23:51:27 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TQzIVMWROi2rtThOL13IOntVLQ5aVJU/DtR5R6OKdnBouc4kvjRef7mfNT2vver9xKpAhpXzJeuWq5xU7BCklZ9YRgezIWqav16R8XSZHRmEcyjA28GReOtJEiKezDJkc/0o8HohKahKrOZy6V6jwyX2vbuaYWxhkMCCeHKsZ2o=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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.

> 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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.