All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Duffy <cduffy@spamcop.net>
To: xen-devel@lists.xensource.com
Subject: Basic xenstore questions (building a watchdog)
Date: Thu, 12 Jan 2006 15:46:38 -0600	[thread overview]
Message-ID: <dq6io3$ll6$1@sea.gmane.org> (raw)

I'm looking at building a xenstore-based watchdog, as described at 
http://lists.xensource.com/archives/html/xen-users/2005-07/msg00597.html

However, being somewhat new to xenstore, I'd appreciate some pointers.

- What portions of the xenstore namespace should I use? I'm looking for 
at least two settings writable by the DomUs: A flag to enable/disable 
the watchdog for a given domain (ideally, this would be specific to an 
individual run of the instance in question and not persisted across 
runs), and a counter via the modification of which the watchdog may be pet.

   http://wiki.xensource.com/xenwiki/XenStoreReference indicates that 
/tool is likely an appropriate region (perhaps I should create 
/tool/watchdog/<vmid>/{enabled,counter}?), but this doesn't provide 
guidance as to how I can avoid persistance (if this is possible). 
Alternately, are vm GUIDs unique on a per-invocation basis? If so, 
/tool/watchdog/vmid/enabled could enable the watchdog only when it 
contains the current vm's GUID (preventing it from working across 
restarts). (Given some basic playing around with xenstore-list, 
xenstore-read and friends from within a DomU, however, it looks like I 
can't read contents of /vm from the DomU -- so am I actually able to 
find my own GUID such as to be able to use it in this way? For that 
matter, how can a DomU find its own vmid?)

- Are the xend.xenstore classes intended exclusively for xend's use, or 
is it acceptable for them to be used by 3rd-party software as well?

- Any example code I'd be well-advised to look at?

Thanks!

             reply	other threads:[~2006-01-12 21:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-12 21:46 Charles Duffy [this message]
2006-01-13 13:34 ` Basic xenstore questions (building a watchdog) Ewan Mellor
2006-01-16 18:35   ` Charles Duffy
2006-01-13 14:51 ` Mark Williamson
2006-01-13 15:16   ` Charles Duffy

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='dq6io3$ll6$1@sea.gmane.org' \
    --to=cduffy@spamcop.net \
    --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.