From: Keir Fraser Subject: Re: [patch] pae: tlbflush linear page table updates Date: Fri, 12 Aug 2005 11:18:12 +0100 Message-ID: References: <571ACEFD467F7749BC50E0A98C17CDD807959968@pdsmsx403> <20050812095648.GG8974@wotan.suse.de> 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: <20050812095648.GG8974@wotan.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: Andi Kleen Cc: Gerd Knorr , xen-devel@lists.xensource.com, "Tian, Kevin" List-Id: xen-devel@lists.xenproject.org On 12 Aug 2005, at 10:56, Andi Kleen wrote: >> "early clobber" is good to prevent output alias as input, if that >> output >> may be clobbered before input is used. However there seems no point to >> simply alias among inputs. Or else, the only way I can see is that >> compiler insert some extra lines in the middle of inline asm... Any >> benefit for this likelihood? > > There can be cases e.g. when the inputs are dependent and you use > general enough constraints. e.g. one input can be %reg and the other > offset(%reg). In this case they will essentially alias. That would be a nasty one to track down. :-) It seems the general policy in Linux also is not to bother with '&' on outputs that have a forced alias in the input list. I'd be happy to see a cleanup patch that adds more '&'s to Xen though -- in cases where we are relying on the forced alias then it's unlikely to change the generated assembly code. -- Keir