From: Stefano Stabellini Subject: Re: [PATCH v4 4/7] xen/x86: introduce more cache maintenance operations Date: Mon, 13 Oct 2014 12:09:02 +0100 Message-ID: References: <1412941440-5646-4-git-send-email-stefano.stabellini@eu.citrix.com> <5437F853020000780003DBCD@mail.emea.novell.com> <543BC9E9020000780003E38C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XddX9-0002zp-GS for xen-devel@lists.xenproject.org; Mon, 13 Oct 2014 11:11:23 +0000 In-Reply-To: <543BC9E9020000780003E38C@mail.emea.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: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 13 Oct 2014, Jan Beulich wrote: > >>> On 13.10.14 at 12:35, wrote: > > On Fri, 10 Oct 2014, Jan Beulich wrote: > >> >>> On 10.10.14 at 13:43, wrote: > >> > +void clean_and_invalidate_dcache_va_range(const void *p, unsigned long size) > >> > +{ > >> > + int order = get_order_from_bytes(size); > >> > >> unsigned int if the variable is really needed. > >> > >> > + flush_area_local(p, FLUSH_CACHE|FLUSH_ORDER(order)); > >> > +} > >> > >> Overall I wonder whether not making this an inline function is really > >> appropriate. > > > > Introducing this function as static inline in page.h would cause the > > number of included files to grow a bit too much I think. > > Or maybe page.h is simply the wrong home for them, at least on > x86? good point, I'll move them to flushtlb.h