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] x86_64/page.h L1_DISALLOW_MASK, etc

To: Karen White <kawhite@xxxxxxxxxx>
Subject: Re: [Xen-devel] x86_64/page.h L1_DISALLOW_MASK, etc
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 29 Mar 2005 08:48:09 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 29 Mar 2005 07:45:04 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1112055308.21025.21.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <1112055308.21025.21.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 29 Mar 2005, at 01:15, Karen White wrote:

In xen/include/asm-x86/x86_64/page.h, it appears the #defines for
L1_DISALLOW_MASK, L2_DISALLOW_MASK, etc. have the assignment backwards
in the conditional test.  The current code appears to be setting the NX
bit if the cpu does not have the NX feature, as opposed to if it does.

Yes, because it's a disallow mask. We don't want to disallow the NX bit if the CPU supports it, so we don't OR it into the mask. The current way round is correct.

Also, what exactly is being set when setting the 3 bits for the
L2_DISALLOW_MASK, L3_DISALLOW_MASK, and L4_DISALLOW_MASK definitions?

Bit 7 is PSE, which we don't support in guest tables.
Bit 8 is PGE: also unsupported.
Bit 9 is a mistake -- it's available for OS use -- so I will remove it from the mask.

 Thanks,
 Keir

Karen
<page.disallow.patch>_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


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

<Prev in Thread] Current Thread [Next in Thread>