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: Jeff Williams <jeffw@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] xen-detect.c question
From: 정희동 <heedongj@xxxxxxxxx>
Date: Tue, 26 May 2009 22:57:42 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 26 May 2009 20:59:05 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=TwVW5QzEUt0jO0JaIwezUPoSAz+K31TlTymS2q7SvSc=; b=adu3N7SLmoRO/LgnU9EA+hACc9nd33acNvtJS4jOFKItzotpP2u6fK0mKOai2oT8TF l9hjZb3fMsd4NUmXqMLeIQj/5qoVFN0po93RrdXmVl1YuvjfZna0F2ZPYi7pP7nrGd69 A1cxKODxgySPzeLr59a79kfT/8kAfuRBwCUoQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uWtx8daNI2Y5dMOlFm9R/lByhx1tWgRbhLN5QS8Sefx5O9S+lQcDl+8ZidrzHrYRNT 9YQ2enwpT7mSFV60bFmejVF7ZvFhTYP1dhaFHR7m4MfWejVKam5mKS5nzhd6BQQtUlKU rrNwijm8oLPsi5hkhvl7ZGR+0aqB+WU+67XT8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A1C8F6D.1030509@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> <4A1C8F6D.1030509@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thank you very much.
 
You helped me a lot =)

2009/5/26 Jeff Williams <jeffw@xxxxxxxxxxxxxx>
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>