From: Keir Fraser Subject: Re: [patch] pae: tlbflush linear page table updates Date: Wed, 10 Aug 2005 11:53:24 +0100 Message-ID: <401da49dc06bdca6ce31d02ca93d8c0d@cl.cam.ac.uk> References: <20050808145153.GA31526@bytesex> <20050809075414.GA13745@bytesex> <416c694c7150940849398dfc41457960@cl.cam.ac.uk> <20050809135223.GA17751@bytesex> <20050809154400.GA20397@bytesex> <1a49dd852a0effd5c1f02f13280274ba@cl.cam.ac.uk> <20050810102222.GA32246@bytesex> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050810102222.GA32246@bytesex> 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 Knorr Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10 Aug 2005, at 11:22, Gerd Knorr wrote: > so create_pae_xen_mappings() failure (due to the guest OS trying > illegal things) will *trigger* the error path. Strange it never > showed up, maybe linux never ever updates l3 entries after > creating them. I think it preallocates all the L2's so mod_l3_entry probably isn't used. But yes: it looks like I broke it. :-) > BUG_ON(!create_pae_xen_mappings()) is a bad idea, it _can_ fail, > the failure should just be propagated up (so in the end the > hypercall running into this returns some errror) or the domain > should simply be killed ... The checks that can fail only really belong in alloc_l3_table. An already typed l3 should not need those checks on its highest l3e (mod_l3_entry explicitly disallows meddling with that entry). -- Keir