WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Q: How to find own domid or uuid from domU?

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Q: How to find own domid or uuid from domU?
From: Markus Armbruster <armbru@xxxxxxxxxx>
Date: Thu, 18 May 2006 11:46:42 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 18 May 2006 02:47:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9c6da8341e7021597b69a4a4d941e993@xxxxxxxxxxxx> (Keir Fraser's message of "Thu, 18 May 2006 09:55:03 +0100")
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87fyj7ravp.fsf@xxxxxxxxxxxxxxxxx> <9c6da8341e7021597b69a4a4d941e993@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> writes:

> On 18 May 2006, at 09:32, 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?
>
> DOMID is ephemeral so we don't want guests looking at it. UUID is a
> different matter -- I think we simply don't have an interface for
> obtaining it right now.
>
>  -- Keir

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.

Would you like to have an interface for obtaining one's UUID?  What
about adding a XENVER_get_uuid code to HYPERVISOR_xen_version()?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel