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

[Xen-devel] Set NX bit for a PTE.


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Necrosoft <necrosoft@xxxxxx>
  • Date: Thu, 12 Jun 2008 15:08:30 +0200
  • Delivery-date: Thu, 12 Jun 2008 06:09:08 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :x-google-sender-auth; b=jZjazoOpCg3nHQ1Ydn76VyqhY2Yw1H34C2rE50LsQ9Yu+eDYztyluLShzQAFq383+F kvivtZG6Mna9xfFEH19mrcDBkp5HxIOFpKyw1wHVgMGzgIikB20NWiSxkSYxJBGcMnaa rHmoPZlSUqSti2E735FJT/K7nuXvDTYwyl85U=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>


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
_______________________________________________
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®.