All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Q: How to find own domid or uuid from domU?
Date: Thu, 18 May 2006 12:52:01 +0200	[thread overview]
Message-ID: <87r72rppv2.fsf@pike.pond.sub.org> (raw)
In-Reply-To: <87882c2fef4a6cb52eeb9881d1b4ca4a@cl.cam.ac.uk> (Keir Fraser's message of "Thu, 18 May 2006 11:01:59 +0100")

Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:

> On 18 May 2006, at 10:46, Markus Armbruster wrote:
>
>> I can map from domid to uuid by reading /local/domain/DOMID/vm.
>>
>> I got that to work by trying DOMIDs starting with 0 until the read
>> succeeds, but that's kind of gross.
>>
>> I can think of some less gross methods to find my domid, but I'd still
>> be glad to hear suggestions.
>
> Don't use DOMID. It can change across save/restore and migration.

No plans to expose it to anything.  I got interested in it just as a
means to obtain the UUID.

>> Would you like to have an interface for obtaining one's UUID?  What
>> about adding a XENVER_get_uuid code to HYPERVISOR_xen_version()?
>
> That might be okay, although even that might appear to change if we
> implement things like VM fork in future.

No problem as long as the information remains available somewhere.

> Why does your guest need to know its ID?

So that managament tools have a way of associating a running domain
with persistent state such as config files, regardless of where on a
network the domain is running at any time.

  reply	other threads:[~2006-05-18 10:52 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 [this message]
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
  -- 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=87r72rppv2.fsf@pike.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --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.