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().