All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Bainbridge <chris.bainbridge@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Re: simple check for domU?
Date: Fri, 11 Nov 2005 16:21:00 +0000	[thread overview]
Message-ID: <623652d50511110821w341cc213x@mail.gmail.com> (raw)
In-Reply-To: <20051111015228.GC3558@karstenlx.eng.hq.xensource.com>

On 11/11/05, Karsten M. Self <kself@xensource.com> wrote:
> on Fri, Nov 11, 2005 at 12:23:18AM +0000, Chris Bainbridge (chris.bainbridge@gmail.com) wrote:
> > Hi, is there a simple way to check that we're running under a domU? So
> > far I came up with:
>
> Try:
>
>     uname -r | grep -q -- -xen
>
> ... which generally works.  'test -d /proc/xen' is pretty reliable as
> well.

I'm looking specifically for domU and not dom0 (well, it would be
useful to have a reliable way of identifying both). /proc/xen will be
present in dom0 and uname depends on the kernel EXTRAVERSION which
isn't guaranteed.

  reply	other threads:[~2005-11-11 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11  0:23 simple check for domU? Chris Bainbridge
2005-11-11  1:52 ` Karsten M. Self
2005-11-11 16:21   ` Chris Bainbridge [this message]
2005-11-11 18:14 ` NAHieu
2005-11-11 20:33   ` Chris Bainbridge
  -- strict thread matches above, loose matches on Subject: below --
2005-11-12  1:33 James Harper
2005-11-12  2:26 ` Chris Bainbridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=623652d50511110821w341cc213x@mail.gmail.com \
    --to=chris.bainbridge@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.