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

RE: [Xen-devel] Self Domid

Yes, xenbus_scanf on "domid" node gets it.


-----Original Message-----
From: Dietmar Hahn [mailto:dietmar.hahn@xxxxxxxxxxxxxxxxxxx]
Sent: Friday, October 10, 2008 1:44 PM
To: Kumar, Venkat
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Self Domid

Am Freitag, 10. Oktober 2008 schrieb Kumar, Venkat:
> How to get a "Self Domid" from a running domain?
> I thought DOMID_SELF macro would do it but from the sources looks like
> DOMID_SELF is a fixed value and actually doesn't get you the domid. Is
> there any other Macro or API to get the self domid (from the kernel)? Thx,
> Venkat

You can read the domid from the xenstore.
There is an interface both from user land and kernel part in dom0.
>From within the domU you need to connect to the xenbus interface.


Xen-devel mailing list



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