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

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

2012/1/31 Laszlo Ersek <lersek@xxxxxxxxxx>:
> 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.

Thanks, sure that looks quite hackish, there's no other way to do it?
I need to know the dom id to set the correct watches on xenstore for
driver domains. Each driver domain should watch a specific path in
xenstore, that is determined based on the id of the domain itself.

Xen-devel mailing list



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