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

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to determine if executing under Xen
From: mjfeeney@xxxxxxxxxxx
Date: Wed, 26 Jul 2006 18:10:11 -0400
Delivery-date: Wed, 26 Jul 2006 15:10:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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.  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.

Thanks - Martin


Be one of the first to try Windows Live Mail. Windows Live Mail.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>