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

Re: [Xen-devel] using @releaseDomain to subscribe for domain destruction



Thanks! But why release domain not returns domid ?=)
As i understand if i want to know what domains dies i need after fired
watch enumerate all domains and check its status. May be in case of
special watches watch returns not provided token or something more
useful?
in any case thanks for answers.

2013/2/14 Ian Campbell <Ian.Campbell@xxxxxxxxxx>:
> On Thu, 2013-02-14 at 13:18 +0000, Vasiliy Tolstov wrote:
>> Hello!. How can i use @releaseDomain from dom0 to subscribe for domain
>> destruction?
>> I'm try to add watch for @releaseDomain path with token equal of
>> needed domain id. But when another domain dies, i get domain that i
>> provide via token to xs_watch.
>
> The token is an opaque cookie which xenstore simply echoes back at you
> so you can identify which of your watches is firing if you have more
> than one. It doesn't have any meaning other than that.
>
>> Is that possible to get id of domain what released from xenstore?
>
> Not directly, @releaseDomain just tells you that *a* domain died, you
> need to check if it was the one which interested you.
>
> libxl has some infrastructure for maintaining this state and firing
> events on specific domain death. depending on your use case this may or
> may not be overkill for your application.
>
> Ian.
>
>
>



--
Vasiliy Tolstov,
Clodo.ru
e-mail: v.tolstov@xxxxxxxxx
jabber: vase@xxxxxxxxx

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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