From: Keir Fraser Subject: Re: TLB flushing in x86's map_pages_to_xen() Date: Tue, 15 May 2007 08:45:52 +0100 Message-ID: References: <46497B78.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46497B78.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 15/5/07 08:20, "Jan Beulich" wrote: > While I realize that the local-flush-only approach attempts to minimize > overhead, > I have some difficulty understanding how this can properly deal with the > effects > of speculation on remote processors. I believe this will get even worse when > considering cacheability changes, in which case it is not only an immediate > TLB > flush that is needed, but also an immediate cache flush. Map_pages_to_xen() is only used at start-of-day, except for memory-guarding where TLB flushing isn't actually required for correctness. If it were used during normal Xen execution for more sophisticated purposes then yes, more consideration would need to be given for flushing processor state. -- Keir