|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] DOM0_GETDOMAININFO hypercall support for DOMID_SELF
Cihula, Joseph wrote: If you want to find out your domid (you'll have to be very careful wrt save/restore/migrate btw) what you can do today is:The attached (and following) patch allows a privileged domain to use the DOM0_GETDOMAININFO dom0_op (and by extension, userspace apps to use xc_domain_getinfo()) to query about themselves by specifying the domid as DOMID_SELF. Most importantly, this allows the domain to determine its own domid. 1) Copy libxenctrl.so.3.0.0, libxenstore.so, and xenstore-read into your guest. 2) xenstore-read domidThis will work in any type of domain. You can also just use libxenstore directly (just make sure to use xs_domain_open()). Regards, Anthony Liguori
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |