From: "Jan Beulich" Subject: Re: [PATCH 3/4] xen/arm: introduce XENMEM_cache_flush Date: Thu, 02 Oct 2014 12:34:15 +0100 Message-ID: <542D5457020000780003BE7B@mail.emea.novell.com> References: <1412244158-12124-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 1XZeeK-00066Y-6O for xen-devel@lists.xenproject.org; Thu, 02 Oct 2014 11:34:20 +0000 In-Reply-To: <1412244158-12124-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 02.10.14 at 12:02, wrote: > --- a/xen/arch/arm/mm.c > +++ b/xen/arch/arm/mm.c > @@ -1134,6 +1134,98 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE_PARAM(void) arg) > case XENMEM_get_sharing_shared_pages: > case XENMEM_get_sharing_freed_pages: > return 0; > + case XENMEM_cache_flush: Two further notes/questions: Shouldn't this rather be an arch-independent op right away? I suppose x86 will need this the moment it gains 32-bit PVH Dom0 support (which will then include non-PAE). With that, wouldn't the whole operation be a better fit with the other MMUEXT_* ones instead of being XENMEM_*? Jan