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] Using NX bit in Xen 3.1

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Using NX bit in Xen 3.1
From: 최종욱 <whiteugi@xxxxxxxxxxxxx>
Date: Tue, 10 Nov 2009 01:57:48 +0900
Delivery-date: Tue, 10 Nov 2009 07:33:01 -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
Thread-index: AcphXcMLz6x2o52kTpSSDZOrMtbVHA==

Hi there~

 

I’m new in Xen hypervisor(3.1 Ver) and I need a help to succeed some work.

 

The source code about memory management and shadow page table is very confused.

 

To catch a page of executing code in Xen hypervisor, I want to use NX bit of shadow page table.

 

So, I need some hints to do it.

 

First, how can I use the nx bit in xen environment. Can I install 64bit-support OS on a virtual machine or enable the nx bit in xen configuration?

My setup is xen(3.1 ver), dom0(debian/kernel 2.6.26), guest VM(linux kernel 2.6.26), and CPU support VT-X.

 

Second, how can I set the nx bit in every page of all executables in guest VM.

 

Third, how can I detect the nx bit page fault? I think it’s done by add some code at sh_page_fault().

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Using NX bit in Xen 3.1, 최종욱 <=