From: Keir Fraser Subject: Re: x86_64/page.h L1_DISALLOW_MASK, etc Date: Tue, 29 Mar 2005 08:48:09 +0100 Message-ID: <3d7b32ce27a9454c5d1c4efc76abd344@cl.cam.ac.uk> References: <1112055308.21025.21.camel@kwdevel.austin.ibm.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1112055308.21025.21.camel@kwdevel.austin.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Karen White Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel