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] xen-detect.c question

To: 정희동 <heedongj@xxxxxxxxx>
Subject: Re: [Xen-users] xen-detect.c question
From: Jeff Williams <jeffw@xxxxxxxxxxxxxx>
Date: Wed, 27 May 2009 08:55:09 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 26 May 2009 17:56:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <aa63efcf0905252051k28702e11m300e751b4f84b5db@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <aa63efcf0905252051k28702e11m300e751b4f84b5db@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090409)
Well, I'm not sure about the internals of Xen, but I can read C. It looks like it should be able to detect HVM and PV.

What it does is:

Executes some assembly code to get the id of the cpu

If that returns "XenVMMXenVMM" then we're running Xen in HVM mode

Otherwise it tests for PV mode.

It executes the same assembly code, but this time in pv context (which will only work on a PV machine)

If that succeeds then we're running Xen in PV mode.

If that fails then we're not running Xen.

Jeff

On 26/05/09 11:51, 정희동 wrote:
Hello, I have a question about xen-detect.c (which is posted http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.html here) It says that by running this program xen PV and HVM can be detected. First of all, is it true that it can detect HVM (hardware support Xen)?
Can anyone confirm this?
If it is true then can anyone explain me how this can detect xen? Thank you in advance.
------------------------------------------------------------------------

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


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

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