[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xen-detect.c question


  • To: Jeff Williams <jeffw@xxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.