From: "Jan Beulich" Subject: Re: [PATCH v5 5/8] xen/x86: introduce more cache maintenance operations Date: Tue, 14 Oct 2014 11:54:23 +0100 Message-ID: <543D1CFF020000780003EAFF@mail.emea.novell.com> References: <1413212324-664-5-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XdzkK-0001tm-68 for xen-devel@lists.xenproject.org; Tue, 14 Oct 2014 10:54:28 +0000 In-Reply-To: <1413212324-664-5-git-send-email-stefano.stabellini@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 13.10.14 at 16:58, wrote: > Move the existing flush_page_to_ram flushtlb.h. > > Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich provided you ... > +static inline int clean_and_invalidate_dcache_va_range(const void *p, unsigned long size) > +{ > + unsigned int order = get_order_from_bytes(size); > + /* sub-page granularity support needs to be added if necessary */ > + flush_area_local(p, FLUSH_CACHE|FLUSH_ORDER(order)); > + return 0; > +} > +static inline int clean_dcache_va_range(const void *p, unsigned long size) > +{ > + clean_and_invalidate_dcache_va_range(p, size); > + return 0; ... either make this return the called function's return value or make the whole thing a simple, object-like macro. Jan