From: Ian Campbell Subject: Re: [PATCH V2 3/4] arm: allocate per-PCPU domheap pagetable pages Date: Tue, 23 Apr 2013 12:14:20 +0100 Message-ID: <1366715660.20256.123.camel@zakaz.uk.xensource.com> References: <1366712377.20256.114.camel@zakaz.uk.xensource.com> <1366712395-6146-3-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , Sengul Thomas , "Tim (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-04-23 at 11:55 +0100, Stefano Stabellini wrote: > > + flush_xen_dcache_va_range(root, PAGE_SIZE); > > + flush_xen_dcache_va_range(domheap, DOMHEAP_SECOND_PAGES*PAGE_SIZE); > > Don't we need to flush first too (on ARMv8)? Yes, I think so. > > > > + per_cpu(xen_pgtable, cpu) = root; > > + per_cpu(xen_dommap, cpu) = domheap; > > I think we should flush the two per_cpu variables here These are just normal per-cpu variables, they aren't passed to the MMU hardware or anything like that, so I don't think we do need to flush. If we need to flush per_cpu writes in the general case then we have a big problem, but I don't think this is the case. Ian.