From: Ian Campbell Subject: Re: [PATCH v2 3/4] xen/arm: clean and invalidate all guest caches by VMID after domain build. Date: Tue, 4 Feb 2014 16:09:20 +0000 Message-ID: <1391530160.6497.52.camel@kazak.uk.xensource.com> References: <1391523701.5635.6.camel@kazak.uk.xensource.com> <1391523745-21139-3-git-send-email-ian.campbell@citrix.com> <21233.2088.315549.191502@mariner.uk.xensource.com> <1391528262.6497.35.camel@kazak.uk.xensource.com> <21233.3469.939694.871033@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21233.3469.939694.871033@mariner.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: Ian Jackson Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org On Tue, 2014-02-04 at 15:55 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH v2 3/4] xen/arm: clean and invalidate all guest caches by VMID after domain build."): > > On Tue, 2014-02-04 at 15:32 +0000, Ian Jackson wrote: > > > The approach you are taking here is that for pages explicitly mapped > > > by some libxc caller, you do the flush on unmap. But what about > > > callers who don't unmap ? Are there callers which don't unmap and > > > which instead are relying on memory coherency assumptions which aren't > > > true on arm ? > > > > Callers which don't unmap would be leaking mappings and therefore buggy > > in a long running toolstack. > > What I mean is that they might map the guest pages, and expect to > exchange data with the guest through the pages while they were still > mapped ... > > > Also after the initial start of day period we require that the guest > > enable its caches. > > ... but before the guest enables caching. We basically rule that out in the ABI requirements. The cases where this would happen are things like xenstore and xenconsole but those are driven from the guest end, which requires the caches to be on. Ian.