From: Ian Campbell Subject: Re: [PATCH v5 3/5] xen/arm: clean and invalidate all guest caches by VMID after domain build. Date: Wed, 12 Feb 2014 13:20:53 +0000 Message-ID: <1392211253.13563.72.camel@kazak.uk.xensource.com> References: <1392127796.26657.130.camel@kazak.uk.xensource.com> <1392127864-2605-3-git-send-email-ian.campbell@citrix.com> <52FB6E75020000780011BABB@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52FB6E75020000780011BABB@nat28.tlf.novell.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: Jan Beulich Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, julien.grall@linaro.org, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-02-12 at 11:52 +0000, Jan Beulich wrote: > >>> On 11.02.14 at 15:11, Ian Campbell wrote: > > Guests are initially started with caches disabled and so we need to make sure > > they see consistent data in RAM (requiring a cache clean) but also that they > > do not have old stale data suddenly appear in the caches when they enable > > their caches (requiring the invalidate). > > > > This can be split into two halves. First we must flush each page as it is > > allocated to the guest. It is not sufficient to do the flush at scrub time > > since this will miss pages which are ballooned out by the guest (where the > > guest must scrub if it cares about not leaking the pagecontent). We need to > > clean as well as invalidate to make sure that any scrubbing which has > > occured > > gets committed to real RAM. To achieve this add a new cacheflush_page > > function, > > which is a stub on x86. > > > > Secondly we need to flush anything which the domain builder touches, which > > we > > do via a new domctl. > > > > Signed-off-by: Ian Campbell > > Acked-by: Ian Jackson > > Acked-by: Julien Grall > > Acked-by: Stefano Stabellini > > Acked-by: Jan Beulich Thanks. With that I have applied this series. Ian.