From: Tim Deegan Subject: Re: [PATCH V3 4/4] arm: allocate per-PCPU domheap pagetable pages Date: Wed, 24 Apr 2013 13:49:47 +0100 Message-ID: <20130424124947.GA20903@ocelot.phlegethon.org> References: <1366800818.20256.269.camel@zakaz.uk.xensource.com> <1366800841-28468-4-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: <1366800841-28468-4-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: julien.grall@citrix.com, stefano.stabellini@eu.citrix.com, Sengul Thomas , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 11:54 +0100 on 24 Apr (1366804441), Ian Campbell wrote: > + /* Some of these slots may have been used during start of day and/or > + * relocation. Make sure they are clear now. */ > + memset(this_cpu(xen_dommap), 0, DOMHEAP_SECOND_PAGES*PAGE_SIZE); > + flush_xen_dcache_va_range(this_cpu(xen_dommap), > + DOMHEAP_SECOND_PAGES*PAGE_SIZE); > +} This is a dcache flush -- do we need flush_xen_data_tlb_range_va() instead (or possibly as well)? Also: do we care about dirty cachelines from the earlier operations? And in that case should we flush the cache before the PTs are cleared (and again afterwards to guard against prefetches)? Tim (still not convinced my mental model of ARM memory is right...)