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

[Xen-devel] Using NX bit in Xen 3.1


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: 최종욱 <whiteugi@xxxxxxxxxxxxx>
  • Date: Tue, 10 Nov 2009 01:57:48 +0900
  • Delivery-date: Tue, 10 Nov 2009 07:33:01 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

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