From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: determining if kernel is dom0 kernel or not. Date: Wed, 11 Jul 2007 22:39:17 +0100 Message-ID: References: <1184186310.4734.0.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1184186310.4734.0.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xendevel , jd List-Id: xen-devel@lists.xenproject.org On 11/7/07 21:38, "Ian Campbell" wrote: > 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? Oh yes, of course. It contains 'control_d' if you are dom0. -- Keir