From: Keir Fraser Subject: Re: CONFIG_XEN_COMPAT_030002 broken? Date: Mon, 13 Nov 2006 16:56:30 +0000 Message-ID: References: <4558A1B3.8080409@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4558A1B3.8080409@suse.de> 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 On 13/11/06 16:47, "Gerd Hoffmann" wrote: >> To fix this we'd need to make all the KERNPG_XXX macros into variables and >> poke in PAGE_USER if running on an older version of Xen. > > As xen must be able to deal with PAGE_USER being set anyway (to deal > with old guests) I'd simply make that a compile time option depending on > CONFIG_XEN_COMPAT_030002, so we can avoid the extra cost of checking > some variable at runtime ... > > What was the reason for that change btw? Just make the differences > between native and paravirtualized smaller? Yes, and to allow fewer TLB entries to be flushed when switching between guest kernel and guest user. That optimisation is foiled if PAGE_USER is set everywhere. -- Keir