From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Bainbridge Subject: Re: simple check for domU? Date: Sat, 12 Nov 2005 02:26:25 +0000 Message-ID: <623652d50511111826h5bc447c3i@mail.gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: NAHieu , Xen development list List-Id: xen-devel@lists.xenproject.org On 12/11/05, James Harper wrote: > > > > If there's no easy and reliable way to do this maybe one should be > added? > > > > You probably need to clarify exactly what you are asking. If you are > running a -xen kernel instead of -xen[0U], then it's the same kernel but > differing in what privileges you have. In theory (I hope I'm right when > I say this), it is possible to give a domU kernel some access to > hardware, so even the line between a privileged or not kernel is a > little blurred. The Gentoo init scripts do some stuff that fails under a domU (hwclock, ntp..). There's a function that tries to detect a if the kernel is a xenU so as to not to do the things that fail, but it's currently broken (http://bugs.gentoo.org/show_bug.cgi?id=3D107976). It would be nice to have a simple way to fix it.