From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laszlo Ersek Subject: Re: How to get DomU id from DomU Date: Tue, 31 Jan 2012 11:30:38 +0100 Message-ID: <4F27C2CE.30702@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 01/31/12 11:01, Roger Pau Monn=E9 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" (=3D the remote end) should have the real domid. Laszlo