From: Keir Fraser Subject: Re: TLB flushing in blktap kernel driver? Date: Wed, 27 Sep 2006 14:30:04 +0100 Message-ID: References: <1159363026.6276.4.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1159363026.6276.4.camel@sisko.scot.redhat.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: "Stephen C. Tweedie" , "xen-devel@lists.xensource.com" Cc: Andrew Warfield , Julian Chesterfield List-Id: xen-devel@lists.xenproject.org > However, I can't understand right now why we need the tlb flush here. > If we're doing any grant table operations between dom0 and domU, then > the HV should be doing the tlb flushes for us, shouldn't it? And mere > SMP synchronisation on a ring buffer requires a physical memory barrier, > not a TLB synchronisation (and RING_PUSH_REQUESTS already does a wmb.) Grant unmapping certainly guarantees to flush TLB entries. -- Keir