From: "Jan Beulich" Subject: Re: CONFIG_XEN_COMPAT_030002 broken? Date: Tue, 14 Nov 2006 13:02:11 +0000 Message-ID: <4559CC63.76E4.0078.0@novell.com> References: <4559C55D.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Gerd Hoffmann , Xen devel list List-Id: xen-devel@lists.xenproject.org Oh, as I'm changing this - is there a reason for pmd_bad() to use PAGE_MASK rather than PTE_MASK? (I already agreed with Andi that pmd_bad() in native should be cleaned up to match pgd_bad/pud_bad). Jan >>> Keir Fraser 14.11.06 13:42 >>> On 14/11/06 12:32, "Jan Beulich" wrote: >> Oh, good point! Okay then the more straightforward XENVER_version check will >> have to be used: 3.0.3 and newer, versus 3.0.2 and older. > > More strait forward? The .3 is part of extraversion, so in order to do a > comparison > one would have to parse that string (and hence make certain assumptions). > That's > not nice for use in (early) feature detection. Maybe it'd be better to try and > write > a page table entry without PAGE_USER, and check whether that bit got turned > on implicitly... Yes, that sounds reasonable. -- Keir