[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] How to determine if executing under Xen


  • To: "mjfeeney@xxxxxxxxxxx" <mjfeeney@xxxxxxxxxxx>
  • From: "Henning Sprang" <henning_sprang@xxxxxx>
  • Date: Thu, 27 Jul 2006 12:23:26 +0200
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 27 Jul 2006 03:24:15 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iUnzE8ftUzUCbmKv4rChL865w0arX1Ri3NsY263W7bTlj3zb5xieytzEJDUd55nfNSgfrOjAPDXP31o290fQGfghvoThoUEoUnfRZF+e8ViRKP/DqKVtt8iT6E/TUSS2pVoxwhDnO6MqGkXW6QBZS75HOulghansXL7p8gTL5Sw=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On 7/27/06, mjfeeney@xxxxxxxxxxx <mjfeeney@xxxxxxxxxxx> wrote:

Hello,

 I apologize if this has been asked before.  I searched but could not find a
similar question.

 I am writing a device driver targeted for Linux 2.6.16 running under Xen
3.0.

If this is the target, why worry about scenarios when the driver is no
running on xen?

Is there an easy mechanism for my code to determine if Linux is
running as a Xen domain rather than natively?  I want to behave slightly
differently in each case.

Sounds like a xen developer question.

I am not kernel hacker enough to know how a kernel module can find
which other modules are active. If there's a way, I'd just check for
the xen specific modules. For example, the xen kernel is running on a
specific subarchitecture of i386, if you can find that, you are on a
xen kernel.

Henning

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.