From: Christian Limpach <christian.limpach@gmail.com>
To: nahieu@gmail.com
Cc: xen-devel@lists.xensource.com
Subject: Re: watch event for die domain ?
Date: Sun, 11 Sep 2005 00:53:37 +0100 [thread overview]
Message-ID: <3d8eece205091016531b985986@mail.gmail.com> (raw)
In-Reply-To: <5d7aca95050910071574eed9b@mail.gmail.com>
On 9/10/05, NAHieu <nahieu@gmail.com> 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
next prev parent reply other threads:[~2005-09-10 23:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-10 14:15 watch event for die domain ? NAHieu
2005-09-10 23:53 ` Christian Limpach [this message]
2005-09-11 1:26 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3d8eece205091016531b985986@mail.gmail.com \
--to=christian.limpach@gmail.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=nahieu@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.