From: "Jan Beulich" Subject: Re: [PATCH v3 3/5] xen/x86: introduce more cache maintenance operations Date: Fri, 10 Oct 2014 08:40:22 +0100 Message-ID: <5437A986020000780003D853@mail.emea.novell.com> References: <1412773221-15150-3-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 1XcUoK-0007VU-J4 for xen-devel@lists.xenproject.org; Fri, 10 Oct 2014 07:40:24 +0000 In-Reply-To: <1412773221-15150-3-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 08.10.14 at 15:00, wrote: > --- a/xen/include/asm-x86/page.h > +++ b/xen/include/asm-x86/page.h > @@ -346,6 +346,10 @@ static inline uint32_t cacheattr_to_pte_flags(uint32_t cacheattr) > > /* No cache maintenance required on x86 architecture. */ > static inline void flush_page_to_ram(unsigned long mfn) {} > +static inline void clean_xen_dcache_va_range(const void *p, unsigned long size) {} > +static inline void invalidate_xen_dcache_va_range(const void *p, unsigned long size) {} > +static inline void clean_and_invalidate_xen_dcache_va_range > + (const void *p, unsigned long size) {} Mind explaining what purpose the "_xen" in these names serves? Also, is simply stubbing these out correct? I.e. there are caches on x86, and those can both be invalidated and cleaned, so why would you not do so here? Jan