WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Set NX bit for a PTE.
From: Necrosoft <necrosoft@xxxxxx>
Date: Thu, 12 Jun 2008 15:08:30 +0200
Delivery-date: Thu, 12 Jun 2008 06:09:08 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:x-google-sender-auth; bh=CrI3QVQy3RIxsX/6uCsUO4Am2PjbSupAyCCl4aVo0x4=; b=cNCFznUWxwtWah8wMzfpl6LriaQTWrs8YIR6vYe1Kgxr0BZ7WCQ9e2CxX8j8f6yzF7 yEekFFmy13mYhqKRHhwhsZjeGHgyYJYGlCq1lU0sh88aQmtc9TmvGajb1r3ctFr3M0ma a9phVk0nJhiUGZkio/OpcYVKgBWHmlshQrOHk=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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
<Prev in Thread] Current Thread [Next in Thread>