All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@XenSource.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 07:23:36 +0100	[thread overview]
Message-ID: <1190355816.31176.9.camel@localhost.localdomain> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D012497E6@trantor>

On Fri, 2007-09-21 at 14:04 +1000, 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?

"cpuid eax=0x40000000" will return XenVMMXenVMM in (ebx,ecx,edx) or you
could just look for the Xen PCI device -- see unmodified_drivers in the
xen source for examples of both.

Ian.

      parent reply	other threads:[~2007-09-21  6:23 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
2007-09-21  6:23 ` Ian Campbell [this message]

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=1190355816.31176.9.camel@localhost.localdomain \
    --to=ian.campbell@xensource.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.