From: Tim Deegan Subject: Re: [PATCH 11/45] xen: arm64: TLB flushes Date: Thu, 7 Feb 2013 15:31:19 +0000 Message-ID: <20130207153119.GK77133@ocelot.phlegethon.org> References: <1358956576.17440.60.camel@zakaz.uk.xensource.com> <1358956611-8432-11-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1358956611-8432-11-git-send-email-ian.campbell@citrix.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: Ian Campbell Cc: stefano.stabellini@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 15:56 +0000 on 23 Jan (1358956577), Ian Campbell wrote: > --- /dev/null > +++ b/xen/include/asm-arm/arm64/flushtlb.h > @@ -0,0 +1,34 @@ > +#ifndef __ASM_ARM_ARM64_FLUSHTLB_H__ > +#define __ASM_ARM_ARM64_FLUSHTLB_H__ > + > +/* Flush local TLBs, current VMID only */ > +static inline void flush_tlb_local(void) > +{ > + asm volatile( > + "dsb sy;" > + "tlbi vmalle1;" /* ,is ??? */ Good question. I think probably not ',is'; at least not until we decide on, and document, what inner & outer mean on a Xen system. I see that the 32-bit equivalent does use IS; I think that's proabably an error too. Tim. > + "dsb sy;" > + "isb;" > + : : : "memory"); > +} > + > +/* Flush local TLBs, all VMIDs, non-hypervisor mode */ > +static inline void flush_tlb_all_local(void) > +{ > + asm volatile( > + "dsb sy;" > + "tlbi alle1;" /* ,is ??? */ > + "dsb sy;" > + "isb;" > + : : : "memory"); > +}