From: Ian Campbell Subject: Re: [PATCH 2/3] xen: arm: flush TLB on all CPUs when setting or clearing fixmaps Date: Wed, 2 Apr 2014 17:54:52 +0100 Message-ID: <1396457692.4211.16.camel@kazak.uk.xensource.com> References: <1396447908.8667.346.camel@kazak.uk.xensource.com> <1396447971-27846-2-git-send-email-ian.campbell@citrix.com> <533C22B1.1020202@linaro.org> <1396452149.8667.354.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1396452149.8667.354.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.xen.org, tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-04-02 at 16:22 +0100, Ian Campbell wrote: > > This loop is exactly the same on arm64 (except the TLBIMVAHIS), is it > > possible to have a common code like clean_xen_dcache_va_range? > > flush_xen_data_tlb_range_va_local has the same issue. I'll fix them > both. Actually there is a second difference which I didn't remember which is : : "r" (va) : "memory"); vs: : : "r" (va>>PAGE_SHIFT) : "memory"); That's a lot harder to abstract away conveniently. I could have a #define for the shift amount, I guess. I'll have a play and see if I can come up with something satisfactory. If not I'll fall back to keeping the loops per subarch. Ian.