From: =?ks_c_5601-1987?B?w9bBvr/t?= Subject: Using NX bit in Xen 3.1 Date: Tue, 10 Nov 2009 01:57:48 +0900 Message-ID: <000001ca615d$c439de20$4cad9a60$@ac.kr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1683523622==" Return-path: Content-Language: ko 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 This is a multi-part message in MIME format. --===============1683523622== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CA61A9.34218620" Content-Language: ko This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CA61A9.34218620 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable Hi there~ =20 I=A1=AFm new in Xen hypervisor(3.1 Ver) and I need a help to succeed = some work. =20 The source code about memory management and shadow page table is very confused. =20 To catch a page of executing code in Xen hypervisor, I want to use NX = bit of shadow page table. =20 So, I need some hints to do it. =20 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. =20 Second, how can I set the nx bit in every page of all executables in = guest VM. =20 Third, how can I detect the nx bit page fault? I think it=A1=AFs done by = add some code at sh_page_fault(). ------=_NextPart_000_0001_01CA61A9.34218620 Content-Type: text/html; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable

Hi there~

 

I=A1=AFm 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=A1=AFs done by add some code at = sh_page_fault().

------=_NextPart_000_0001_01CA61A9.34218620-- --===============1683523622== 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 --===============1683523622==--