From: "Wu Bingzheng" Subject: VMM detection Date: Wed, 4 Mar 2009 14:51:03 +0800 (CST) Message-ID: <16141848.843521236149463275.JavaMail.coremail@bj163app134.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0957759006==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0957759006== Content-Type: multipart/alternative; boundary="----=_Part_226437_21213302.1236149463274" ------=_Part_226437_21213302.1236149463274 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit Hi men, If there is an application who wants to detect what the OS is running on, physical hardware or Xen, can he do it like this: using SGDT to get GDT's address. If its address is 0xCxxxxxxx, then it's on physical hardware (the OS is Linux) If the address is 0xFxxxxxxx (0xFE820000), then it's on Xen. I test it, and it works. Can Xen do something to prevent this? Thanks, Wu ------=_Part_226437_21213302.1236149463274 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable Hi men,

If there is an application who wants to detect what
the O= S is running on, physical hardware or Xen,
can he do it like this:
using SGDT to get GDT's address.

If its address is 0xCxxxxxxx, the= n it's on physical hardware (the OS is Linux)
If the address is 0xFxxxxx= xx (0xFE820000), then it's on Xen.

I test it, and it works.

C= an Xen do something to prevent this?

Thanks,
Wu



=CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9=FA= =B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3=CA=BC=FE=B7=FE=CE=F1=C9=CC
------=_Part_226437_21213302.1236149463274-- --===============0957759006== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0957759006==--