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

Re: [Xen-devel] How to get DomU id from DomU

On 01/31/12 11:01, Roger Pau Monné wrote:

This is quite a trivial question, but I haven't been able to find how
to do it. Is there anyway to get the id of a PV DomU from inside the
(same) PV DomU?

Here's a hack (untested): one could create a loop event channel with EVTCHNOP_bind_interdomain (passing in DOMID_SELF as remote_dom), then query it with EVTCHNOP_status (also passing in DOMID_SELF). On return, "interdomain.dom" (= the remote end) should have the real domid.


Xen-devel mailing list



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