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

RE: [Xen-devel] [PATCH] Fix ASSERT failure caused by NX support code onx

To: "Xen Devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Fix ASSERT failure caused by NX support code onx86_64
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Wed, 15 Mar 2006 14:02:23 +0800
Delivery-date: Wed, 15 Mar 2006 06:03:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Thread-index: AcZHd5c2nAQMam9AQkKs3amzXv67DwAfiwUQ
Thread-topic: [Xen-devel] [PATCH] Fix ASSERT failure caused by NX support code onx86_64
Hi Keir, I have a mistake in the previous patch, here is the fix, pls apply.
Thanks
-Xin

diff -r c445d4a0dd76 xen/include/asm-x86/mm.h
--- a/xen/include/asm-x86/mm.h  Tue Mar 14 19:33:45 2006 +0100
+++ b/xen/include/asm-x86/mm.h  Wed Mar 15 13:59:15 2006 +0800
@@ -100,7 +100,7 @@ struct page_info

 #ifdef __x86_64__
 #define PGT_high_mfn_shift  52
-#define PGT_high_mfn_mask   (0x7ffUL << PGT_high_mfn_shift)
+#define PGT_high_mfn_mask   (0xfffUL << PGT_high_mfn_shift)
 #define PGT_mfn_mask        (((1U<<23)-1) | PGT_high_mfn_mask)
 #define PGT_high_mfn_nx     (0x800UL << PGT_high_mfn_shift)
 #else 

>-----Original Message-----
>From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
>[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Li, Xin B
>Sent: 2006年3月14日 22:57
>To: Xen Devel
>Subject: [Xen-devel] [PATCH] Fix ASSERT failure caused by NX 
>support code onx86_64
>
>Fix ASSERT failure caused by NX support code on x86_64
>When turning on debug for x86_64, ASSERT(gpfn == (gpfn & PGT_mfn_mask))
>in __shadow_status will fail, this patch makes the NX support code
>comply with this ASSERT.
>NB: NX on PAE xen is not supported yet.
>
>Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>
>Signed-off-by: Jun Nakajima <jun.nakajima@xxxxxxxxx>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [Xen-devel] [PATCH] Fix ASSERT failure caused by NX support code onx86_64, Li, Xin B <=