From: Ian Campbell Subject: Re: [PATCH] xen/arm: correct flush_tlb_mask behaviour Date: Wed, 15 Jan 2014 14:13:14 +0000 Message-ID: <1389795194.3793.55.camel@kazak.uk.xensource.com> References: <1389286683-11656-1-git-send-email-julien.grall@linaro.org> <1389633361.13654.112.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W3RDw-0005Po-EN for xen-devel@lists.xenproject.org; Wed, 15 Jan 2014 14:13:40 +0000 In-Reply-To: <1389633361.13654.112.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-01-13 at 17:16 +0000, Ian Campbell wrote: > On Thu, 2014-01-09 at 16:58 +0000, Julien Grall wrote: > > On ARM, flush_tlb_mask is used in the common code: > > - alloc_heap_pages: the flush is only be called if the new allocated > > page was used by a domain before. So we need to flush only TLB non-secure > > non-hyp inner-shareable. > > - common/grant-table.c: every calls to flush_tlb_mask are used with > > the current domain. A flush TLB by current VMID inner-shareable is enough. > > > > The current code only flush hypervisor TLB on the current PCPU. For now, > > flush TLBs non-secure non-hyp on every PCPUs. > > > > Signed-off-by: Julien Grall > > Acked-by: Ian Campbell Applied.