From: Ian Campbell Subject: Re: [PATCH v5 01/14] xen/arm: Introduce flush_tlb_domain Date: Wed, 14 May 2014 14:28:05 +0100 Message-ID: <1400074085.29366.118.camel@kazak.uk.xensource.com> References: <1399996230-18201-1-git-send-email-julien.grall@linaro.org> <1399996230-18201-2-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WkZEA-0006Ck-5t for xen-devel@lists.xenproject.org; Wed, 14 May 2014 13:28:10 +0000 In-Reply-To: <1399996230-18201-2-git-send-email-julien.grall@linaro.org> 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, stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-05-13 at 16:50 +0100, Julien Grall wrote: > The pattern p2m_load_VTTBR(d) -> flush_tlb -> p2m_load_VTTBR(current->domain) > is used in few places. > > Replace this usage by flush_tlb_domain which will take care of this pattern. > This will help to the lisibility of apply_p2m_changes which begin to be big. "lisibility"? Did you mean to type "visibility"? I think the word you really wanted was "readability". > diff --git a/xen/include/asm-arm/flushtlb.h b/xen/include/asm-arm/flushtlb.h > index 329fbb4..5722c67 100644 > --- a/xen/include/asm-arm/flushtlb.h > +++ b/xen/include/asm-arm/flushtlb.h > @@ -25,6 +25,9 @@ do { \ > /* Flush specified CPUs' TLBs */ > void flush_tlb_mask(const cpumask_t *mask); > > +/* Flush CPU's TLBs for the speficied domain */ "Specified" Other than those two nits: Acked-by: Ian Campbell If you can confirm what you meant by "lisibility" I can probably fixup both on commit. > +void flush_tlb_domain(struct domain *d); > + > #endif /* __ASM_ARM_FLUSHTLB_H__ */ > /* > * Local variables: