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-devel

[Xen-devel] VMM detection

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] VMM detection
From: "Wu Bingzheng" <wubingzheng@xxxxxxx>
Date: Wed, 4 Mar 2009 14:51:03 +0800 (CST)
Delivery-date: Tue, 03 Mar 2009 22:51:31 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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



网易邮箱,中国第一大电子邮件服务商
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>