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] Uses of &frame_table[xfn]

To: "Cihula, Joseph" <joseph.cihula@xxxxxxxxx>
Subject: Re: [Xen-devel] Uses of &frame_table[xfn]
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Fri, 30 Dec 2005 13:40:27 +0000
Cc: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>, Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 30 Dec 2005 13:45:02 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CA95C29D57188841ABB072EA7357C00D0A86092B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <CA95C29D57188841ABB072EA7357C00D0A86092B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Wed, Dec 28, 2005 at 05:49:47PM -0800, Cihula, Joseph wrote:

> On Wednesday, December 28, 2005 2:24 PM,  Muli Ben-Yehuda <> wrote:
> > On Wed, Dec 28, 2005 at 02:16:21PM -0800, Magenheimer, Dan (HP Labs
> > Fort Collins) wrote: 
> > 
> >> On a related note, what is the cleanest way from Linux to
> >> determine if it is running as domain0 or not?
> > 
> > Various places check (xen_start_info->flags & SIF_INITDOMAIN).
> 
> You could also read your domid from xenstore or using libxenctrl.

As of Xen 3.0.0, there is a /proc/xen/capabilities node, that shows
"control_d" in domain 0, and nothing in an unprivileged guest.  This is a
better solution for userspace than trying to read from the store.

In the future, this interface will no doubt be expanded to include appropriate
flags for driver domains, etc.  (For now, it is just using SIF_INITDOMAIN.)

Ewan.

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

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