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/
Home Products Support Community News


RE: [Xen-devel] How to get user domain UUID from dom0

To: "Fischer, Anna" <anna.fischer@xxxxxx>
Subject: RE: [Xen-devel] How to get user domain UUID from dom0
From: Liran Schour <LIRANS@xxxxxxxxxx>
Date: Tue, 26 Sep 2006 11:56:59 +0300
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 26 Sep 2006 06:12:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <86FE9B2B91ADD04095335314BE6906E871B4C8@xxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
"Fischer, Anna" <anna.fischer@xxxxxx> wrote on 25/09/2006 19:31:32:

> One option to get the UUID is to read it from the Xenstore. The Xenstore
> can be accessed in user space (using xenstore-read/write) and in kernel
> space using the kernel API. The API is defined in tools/xenstore/xs.h.
> All domains are indexed by their UUID in the Xenstore in the path /vm.
> There're different ways to find the UUID. If you have the domain ID then
> you can find the UUID under /local/domain/$DOMID/vm/$UUID.
> You might want to have a look in the Xenstore reference of the XenWiki.
> There's some sample code, too. Is that what you were looking for?

I need to get the UUID from kernel space. As I have noticed the kernel API
(xenbus_scanf) assumes you are already in /local/domain/0 and starts the
lookup from that point. I need to go back in the path to /local/domain/X I
don't know how to do this from kernel space.

- Liran

Xen-devel mailing list