From: Keir Fraser Subject: Re: Odd mapping behavior with map_pages_to_xen Date: Fri, 17 Mar 2006 08:47:48 +0000 Message-ID: References: <4419751D.1070404@cs.aau.dk> <4f5403f2a706a97a8b0ef6329d417c81@cl.cam.ac.uk> <4419B70B.7060201@cs.aau.dk> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4419B70B.7060201@cs.aau.dk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Arne Mejlholm Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 16 Mar 2006, at 19:05, Arne Mejlholm wrote: >> If you build Xen with 'debug=y' option then I expect you'll find your >> code works fine. :-) > > You expected correctly indeed. I take it that enabling debug either > forces the mappings to be replaced (non-lazily) or does it switch > entirely to 4kb pages? There is no code to replace the mappings in non-idle pagetables. So it's the latter -- to support heap guard pages, we map the entire Xen heap with 4kB pages in debug builds. In non-debug builds the superpages are used in all pagetables to map Xen heap. It's to improve TLB utilisation. -- Keir