All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Markus Armbruster <armbru@redhat.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Q: How to find own domid or uuid from domU?
Date: Thu, 18 May 2006 15:43:18 +0200	[thread overview]
Message-ID: <446C79F6.8020103@suse.de> (raw)
In-Reply-To: <87fyj7ravp.fsf@pike.pond.sub.org>

Markus Armbruster wrote:
> I can access xenstore /local/domain/DOMID in domU's kernel through the
> xen/xenbus.h API.  What I can't figure out for love or money is how to
> determine DOMID.  Or UUID, for that matter.  Ideas?

Use relative paths:

  code10:~ # xenstore-read vm
  /vm/0fa9cb1b-1275-7027-9cab-80089db40ed4
  code10:~ # xenstore-read domid
  1

That's it.  But adding a watch for these doesn't work (at least it
didn't last time I tried), so you can't easily get notified in case the
domid changes due to migration or save/restore.

cheers,

  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>
Erst mal heiraten, ein, zwei Kinder, und wenn alles läuft
geh' ich nach drei Jahren mit der Familie an die Börse.
http://www.suse.de/~kraxel/julika-dora.jpeg

  parent reply	other threads:[~2006-05-18 13:43 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-18  8:32 Q: How to find own domid or uuid from domU? Markus Armbruster
2006-05-18  8:55 ` Keir Fraser
2006-05-18  9:46   ` Markus Armbruster
2006-05-18 10:01     ` Keir Fraser
2006-05-18 10:52       ` Markus Armbruster
2006-05-18 12:27         ` Keir Fraser
2006-05-18 13:18           ` Markus Armbruster
2006-05-18 13:29             ` Keir Fraser
     [not found]               ` <446C8488.1030503@us.ibm.com>
     [not found]                 ` <8d2b2f0e40dfb24f939a81970a493a7f@cl.cam.ac.uk>
2006-05-18 15:21                   ` Andrew D. Ball
2006-05-18 16:59                     ` Christian Limpach
2006-05-22 14:18                       ` Andrew D. Ball
2006-05-22 14:45                         ` Christian Limpach
2006-05-22 18:36                           ` Andrew D. Ball
2006-05-23  7:52                       ` Markus Armbruster
2006-05-23  8:31                         ` Christian Limpach
2006-05-23 10:02                           ` Ewan Mellor
2006-05-23 11:02                             ` Markus Armbruster
2006-05-23 11:43                               ` Keir Fraser
2006-05-23 15:25                                 ` Ewan Mellor
2006-05-18 13:43 ` Gerd Hoffmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-18 12:06 James Harper
2006-05-18 14:53 Andrew D. Ball

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=446C79F6.8020103@suse.de \
    --to=kraxel@suse.de \
    --cc=armbru@redhat.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.