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] determining if kernel is dom0 kernel or not.

To: Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] determining if kernel is dom0 kernel or not.
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Wed, 11 Jul 2007 21:38:30 +0100
Cc: xendevel <xen-devel@xxxxxxxxxxxxxxxxxxx>, jd <jdsw2002@xxxxxxxxx>
Delivery-date: Wed, 11 Jul 2007 13:36:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2BAEBB2.1248B%keir@xxxxxxxxxxxxx>
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: <C2BAEBB2.1248B%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2007-07-11 at 20:18 +0100, Keir Fraser wrote:
> If you want to detect dom0 specifically then that's trickier --
> /proc/xen/privcmd for example exists even in a domU, if the kernel is
> dom0-capable. You'd have to be root and then try a privileged hypercall. :-)

Doesn't /proc/xen/capabilities contain something different on dom0 vs.
domU?



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