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

xen-devel

[Top] [All Lists]

RE: [Xen-devel] xenstore -- read UUID

To: Geoffrey Lefebvre <geoffrey@xxxxxxxxx>, xen developers community <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen users community <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] xenstore -- read UUID
From: dinesh chandrasekaran <dinesh_chan8@xxxxxxxxxxx>
Date: 2008年9月12日 03:19:21 +0530
Cc:
Delivery-date: 2008年9月11日 14:49:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Absolulty. Thanks.
but uuid_unparse() is defined in /usr/include/uuid which means I could use this only from the use space in domain-0.
The hypervisor doesnot include these user space libraries. How could I convery the dmain->handle; the 16 byte uuid to a human readable
from inside the hypervisor?

thanks,
Dinesh C

> Date: 2008年9月11日 14:28:37 -0700
> From: geoffrey@xxxxxxxxx
> To: dinesh_chan8@xxxxxxxxxxx
> Subject: Re: [Xen-devel] xenstore -- read UUID
> CC: xen-devel@xxxxxxxxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
>
> > Hi geoffrey,
> > the xen_domain_handle_t in the domain handle field is an
> > unsigned char array of size 16.
> > Where could the UUID be accessed from?
> > or how would you relate the d->handle to the domain's uuid (where d is of
> > type struct domain *d).
> > is all the 16 entries in the d->handle clubbed together to get the domain's
> > uuid?
> >
>
> Hi dinesh,
>
> d->handle contains the domain uuid.
>
> A uuid is a 16 byte number. Xen and libuuid store uuids as 16 byte
> char array. They both define typedefs (xen_domain_handle_t and uuid_t
> respectively) for a 16 byte char array.
>
> If you want to generate a human readable version, you can use
> uuid_unparse to generate a 37 character C string from the uuid_t.
>
> Hope this helps.
>
> geoffrey
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


Voice your opinion on the burning issues of the day. Discuss, debate with the world. Logon to message boards on MSN. Try it!
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Accessing the VNC using HVM stub domain - xen 3.3.0 , Samuel Thibault
Next by Date: Re: [Xen-devel] xenstore -- read UUID , Geoffrey Lefebvre
Previous by Thread: Re: [Xen-devel] xenstore -- read UUID , Geoffrey Lefebvre
Next by Thread: Re: [Xen-devel] xenstore -- read UUID , Geoffrey Lefebvre
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /