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] [PATCH] DOM0_GETDOMAININFO hypercall support for DOMID_S

To: "Anthony Liguori" <aliguori@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] DOM0_GETDOMAININFO hypercall support for DOMID_SELF
From: "Cihula, Joseph" <joseph.cihula@xxxxxxxxx>
Date: Fri, 16 Dec 2005 18:19:07 -0800
Cc: Xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 17 Dec 2005 02:21:24 +0000
Envelope-to: www-data@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYCruNLMR9YBhYWSeCDrxTsjrL1twAAFeRg
Thread-topic: [Xen-devel] [PATCH] DOM0_GETDOMAININFO hypercall support for DOMID_SELF
On Friday, December 16, 2005 6:09 PM,  Anthony Liguori
<mailto:aliguori@xxxxxxxxxx> wrote:
> Cihula, Joseph wrote:
> 
>> 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.
>> 
>> 
> 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:
> 
> 1) Copy libxenctrl.so.3.0.0, libxenstore.so, and xenstore-read into
> your 
> guest.
> 2) xenstore-read domid
> 
> This 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

Good point.  I would expect xenstore to be the preferred way to get this
info.

However, my need for the domid is for dom0 disagreggation where
xenstored (which needs to know its host domain for initialization) may
not be running in dom0 (and thus can't hardcode it).

But aside from that, this just seems like it should be supported by the
interface (and its trivial to do).

Joe

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

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