From: Ian Campbell Subject: Re: [PATCH v4 3/5] xen/arm: clean and invalidate all guest caches by VMID after domain build. Date: Tue, 11 Feb 2014 13:29:43 +0000 Message-ID: <1392125383.26657.124.camel@kazak.uk.xensource.com> References: <1391775139.2162.88.camel@kazak.uk.xensource.com> <1391775176-30313-3-git-send-email-ian.campbell@citrix.com> <52F4E663020000780011A3B0@nat28.tlf.novell.com> <52F8E6DE020000780011AC53@nat28.tlf.novell.com> <1392040924.5117.103.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392040924.5117.103.camel@kazak.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: Jan Beulich Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-02-10 at 14:02 +0000, Ian Campbell wrote: > On Mon, 2014-02-10 at 13:49 +0000, Jan Beulich wrote: > > >>> On 07.02.14 at 13:57, "Jan Beulich" wrote: > > >>>> On 07.02.14 at 13:12, Ian Campbell wrote: > > >> --- a/xen/include/public/domctl.h > > >> +++ b/xen/include/public/domctl.h > > >> @@ -885,6 +885,17 @@ struct xen_domctl_set_max_evtchn { > > >> typedef struct xen_domctl_set_max_evtchn xen_domctl_set_max_evtchn_t; > > >> DEFINE_XEN_GUEST_HANDLE(xen_domctl_set_max_evtchn_t); > > >> > > >> +/* > > >> + * ARM: Clean and invalidate caches associated with given region of > > >> + * guest memory. > > >> + */ > > >> +struct xen_domctl_cacheflush { > > >> + /* IN: page range to flush. */ > > >> + xen_pfn_t start_pfn, nr_pfns; > > >> +}; > > > > > > The name here (and of the libxc interface) is now certainly > > > counterintuitive. But it's a domctl (and an internal interface), > > > which we can change post-4.4 (I'd envision it to actually take > > > a flags parameter indicating the kind of flush that's wanted). > > > > Actually the naming of things in the hypervisor part of the patch > > is now bogus too - sysc_page_to_ram(), for example, does in no > > way imply that the cache needs not just flushing, but also > > invalidating. > > sync_and_clean_page ? Not quite right I think. Unless there are objections my next posting will use "flush_page_to_ram"..