|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] How to determine if executing under Xen
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
|
|
|
|
|