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/
Home Products Support Community News


[Xen-devel] [PATCH] Remove NX bit from x86-64 pages

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Subject: [Xen-devel] [PATCH] Remove NX bit from x86-64 pages
From: Jerone Young <jyoung5@xxxxxxxxxx>
Date: Fri, 08 Jul 2005 00:17:05 -0500
Delivery-date: Fri, 08 Jul 2005 05:17:42 +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
So after a sometime of looking at the code to solve bugzilla #75

I started to look for strange avenues of why this problem was happening.
Well I found it...on IBM hardware with Intel EM64T cpus the ability for
the CPU to understand the NX bit is disabled by default. I had no idea
this was even possible. Now on AMD 64bit CPUs the CPU always understands
the bit and the OS tells it to enforce it or not. Given this I'm betting
that not just IBM hardware but hardware from other vendors may also ship
with it turned off. 

Our problem is that we assume that all x86-64 CPUs will understand this
bit. We also do not have support fully implemented to take advantage of
this bit. A patch from Scott Parish showed this by accident (his patch
removed the NX bit from the pages)...which is how David Barrera the
ability to boot it. So until full nx support is to go in we should
remove it from from the pages for now too avoid strange issues as
bugzilla #75....otherwise they will flood in.

The patch attached removes the bit:

Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>

Attachment: rm_nx_patch.diff
Description: Text Data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Remove NX bit from x86-64 pages, Jerone Young <=