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?


On 18 May 2006, at 10:46, Markus Armbruster wrote:

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.

Don't use DOMID. It can change across save/restore and migration.

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

That might be okay, although even that might appear to change if we implement things like VM fork in future.

Why does your guest need to know its ID?

 -- Keir


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