|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Q: How to find own domid or uuid from domU?
Markus Armbruster wrote:
> I can access xenstore /local/domain/DOMID in domU's kernel through the
> xen/xenbus.h API. What I can't figure out for love or money is how to
> determine DOMID. Or UUID, for that matter. Ideas?
Use relative paths:
code10:~ # xenstore-read vm
/vm/0fa9cb1b-1275-7027-9cab-80089db40ed4
code10:~ # xenstore-read domid
1
That's it. But adding a watch for these doesn't work (at least it
didn't last time I tried), so you can't easily get notified in case the
domid changes due to migration or save/restore.
cheers,
Gerd
--
Gerd Hoffmann <kraxel@xxxxxxx>
Erst mal heiraten, ein, zwei Kinder, und wenn alles läuft
geh' ich nach drei Jahren mit der Familie an die Börse.
http://www.suse.de/~kraxel/julika-dora.jpeg
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|