All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Lalancette <clalance@redhat.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: xen-devel@lists.xensource.com
Subject: Re: How to determine if I am running under Xen?
Date: Fri, 21 Sep 2007 00:30:54 -0400	[thread overview]
Message-ID: <46F348FE.20109@redhat.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D012497E6@trantor>

James Harper wrote:
> Does anyone have a code snippet that I could use (in kernel space) to
> determine if I am running under Xen or not in a HVM domain?
> 
> Thanks
> 
> James

I don't have a code snippet....but a script I saw around here basically 
did "cat /proc/acpi/dsdt | grep xen" to determine whether they were on 
an HVM domain or not.  You can probably pretty easily call the same 
functions that generate the dsdt from the kernel to determine the 
information.

Chris Lalancette

  reply	other threads:[~2007-09-21  4:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-21  4:04 How to determine if I am running under Xen? James Harper
2007-09-21  4:30 ` Chris Lalancette [this message]
2007-09-21  6:23 ` Ian Campbell

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=46F348FE.20109@redhat.com \
    --to=clalance@redhat.com \
    --cc=james.harper@bendigoit.com.au \
    --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.