[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "dinesh chandrasekaran" <dinesh_chan8@xxxxxxxxxxx>
  • From: "Geoffrey Lefebvre" <geoffrey@xxxxxxxxx>
  • Date: Thu, 11 Sep 2008 15:28:32 -0700
  • Cc: xen developers community <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen users community <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 11 Sep 2008 15:29:17 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=gxp4Wze6hXAxEXRN/6Dq+jDqPjt4tVkIyhNGpkNen8AByCk0enhVyadxU0/0vfJ2rF opMLR4+GNswaNiU6JooDXGHUxprG3RU5n/rP8fmueIeHSjJ3ofDvp6KFQtIxYQNU1lFK TTriX+OVNmfktH4d0sqK39oKyDePPY3ziaqMg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

> /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?

If you want to read the a domain uuid from user space, you can use the
XEN_DOMCTL_getdomaininfo hypercall to get the uuid. From there, you
can turn the uuid into a readable string. If you really want to turn
into a readable string from within the hypervisor, then you probably
have to port uuid_unparse to xen but i am not sure I understand why
you would to do that from the hypervisor?

geoffrey



> thanks,
> Dinesh C
>
>> Date: Thu, 11 Sep 2008 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.