WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Self Domid

To: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>, "Kumar, Venkat" <Venkat.Kumar@xxxxxxx>
Subject: Re: [Xen-devel] Self Domid
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 10 Oct 2008 09:17:19 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 10 Oct 2008 01:17:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200810101013.38056.dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckqsJzM202xIZajEd2EPwAWy6hiGQ==
Thread-topic: [Xen-devel] Self Domid
User-agent: Microsoft-Entourage/11.4.0.080122
On 10/10/08 09:13, "Dietmar Hahn" <dietmar.hahn@xxxxxxxxxxxxxxxxxxx> wrote:

> 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.

There's not really any good reason to know it, however.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>