xenstore -- read UUID
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
Quoted 27 lines
Date: Thu, 11 Sep 2008 14:28:37 -0700
From: [email protected]
To: [email protected]
Subject: Re: [Xen-devel] xenstore -- read UUID
CC: [email protected]; [email protected]Quoted 9 lines
Hi geoffrey,
thexen_domain_handle_tin the domain handle field is an
unsigned char array of size 16.
Where could the UUID be accessed from?
or how would you relate thed->handleto the domain's uuid (where d is of type struct domain *d).
is all the 16 entries in thed->handleclubbed together to get the domain's uuid?Hi dinesh,
d->handlecontains 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_tanduuid_trespectively) for a 16 byte char array.If you want to generate a human readable version, you can use
uuid_unparseto generate a 37 character C string from theuuid_t.
Quoted 8 lines
Hope this helps.
geoffrey
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_________________________________________________________________
Movies, sports & news! Get your daily entertainment fix, only on live.com
http://www.live.com/?scope=video&form=MICOAL
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines
/usr/include/uuidwhich 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 thedmain->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
Quoted 44 lines
thanks,
Dinesh CQuoted 29 lines
Date: Thu, 11 Sep 2008 14:28:37 -0700
From: [email protected]
To: [email protected]
Subject: Re: [Xen-devel] xenstore -- read UUID
CC: [email protected]; [email protected]Quoted 11 lines
Hi geoffrey,
thexen_domain_handle_tin the domain handle field is an unsigned char array of size 16.
Where could the UUID be accessed from?
or how would you relate thed->handleto the domain's uuid (where d is of
type struct domain *d).
is all the 16 entries in thed->handleclubbed together to get the domain's
uuid?Hi dinesh,
d->handlecontains 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_tanduuid_trespectively) for a 16 byte char array.If you want to generate a human readable version, you can use
uuid_unparseto generate a 37 character C string from theuuid_t.Quoted 8 lines
Hope this helps.
geoffrey
_______________________________________________
Xen-devel mailing list
[email protected]
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!