From: "Jan Beulich" Subject: Re: CONFIG_XEN_COMPAT_030002 broken? Date: Tue, 14 Nov 2006 16:43:13 +0100 Message-ID: <4559F221.76E4.0078.0@novell.com> References: <4559DCA1.6030102@suse.de> 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: Gerd Hoffmann , Keir Fraser Cc: Xen devel list List-Id: xen-devel@lists.xenproject.org >Also, is it necessary to default to 3.0.2 behaviour? Could we have >kernel_page_user==0 initially and then change the value only if 3.0.2 is >detected? This would provide a sanity check that check_page_user_flag() is >being executed early enough. We could even set kernel_page_user to a garbage >value initially, like ~0. I think it's better the way Gerd had it (my patch also does it that way) - adding extra _PAGE_USER when not needed is not wrong afaics, only hurts performance, whereas missing to add it when needed would crash the kernel. While that might help verify that the check is done early enough, it doesn't guarantee anything since certain code paths may not be taken, and so we may enjoy false safety. Jan