From: Tim Deegan Subject: Re: [PATCH 01/10] xen: arm: map memory as inner shareable. Date: Thu, 4 Jul 2013 11:58:01 +0100 Message-ID: <20130704105801.GA40611@ocelot.phlegethon.org> References: <1372435809.8976.169.camel@zakaz.uk.xensource.com> <1372435856-14040-1-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: <1372435856-14040-1-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, Leif Lindholm , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 17:10 +0100 on 28 Jun (1372439447), Ian Campbell wrote: > @@ -219,7 +249,7 @@ static inline lpae_t mfn_to_p2m_entry(unsigned long mfn, unsigned int mattr) > lpae_t e = (lpae_t) { > .p2m.xn = 0, > .p2m.af = 1, > - .p2m.sh = LPAE_SH_OUTER, > + .p2m.sh = LPAE_SH_INNER, > .p2m.write = 1, > .p2m.read = 1, > .p2m.mattr = mattr, I think we need to leave MMIO mappings outer-shareable (or full-system as appropriate), which means adding the same mechanism that you did for the xen PT mappings. Otherwise, this looks fine. Cheers, Tim.