From: Necrosoft Subject: Set NX bit for a PTE. Date: Thu, 12 Jun 2008 15:08:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0601391530==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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 --===============0601391530== Content-Type: multipart/alternative; boundary="----=_Part_20318_32918853.1213276110557" ------=_Part_20318_32918853.1213276110557 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi I would set the NX bit for a kernel pte in a PV domain. I try to do that from dom0 walking the page table: when l1e = l1[l1_table_offset_pae(va)]; is reached I try to overwrite this entry (l1[l1_table_offset_pae(va)] = l1e_NX) but I receive a "segmentation fault" and PV domain crash. The address seems to be correct (l1 is not unmapped). In PAE mode page table walk work fine. For example I can print the following informations: domU Kernel Address: c0105448 l1e: 17489063 l1 address mapped: b7fab000 l1 offset: 105 write on: b7fab105 Segmentation Fault I can write a pte from dom0 or I must do that only from the hypervisor? Thank you very much for any idea. Bye ------=_Part_20318_32918853.1213276110557 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi

I would set the NX bit for a kernel pte in a PV domain. I try to do that from dom0 walking the page table: when l1e = l1[l1_table_offset_pae(va)]; is reached I try to overwrite this entry (l1[l1_table_offset_pae(va)] = l1e_NX) but I receive a "segmentation fault" and PV domain crash. The address seems to be correct (l1 is not unmapped). In PAE mode page table walk work fine. For example I can print the following informations:

domU Kernel Address: c0105448
l1e: 17489063
l1 address mapped: b7fab000
l1 offset: 105
write on: b7fab105
Segmentation Fault

I can write a pte from dom0 or I must do that only from the hypervisor?

Thank you very much for any idea.

Bye ------=_Part_20318_32918853.1213276110557-- --===============0601391530== 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 --===============0601391530==--