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

Re: [Xen-devel] Uses of &frame_table[xfn]



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


 


Rackspace

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