WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: "mjfeeney@xxxxxxxxxxx" <mjfeeney@xxxxxxxxxxx>
Subject: Re: [Xen-users] How to determine if executing under Xen
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BAY115-W2713408DD02ADEAAFD518DC5B0@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <BAY115-W2713408DD02ADEAAFD518DC5B0@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>