From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v4 5/7] xen/arm: introduce GNTTABOP_cache_flush Date: Fri, 10 Oct 2014 13:04:42 +0100 Message-ID: <5437CB5A.3090608@linaro.org> References: <1412941440-5646-5-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412941440-5646-5-git-send-email-stefano.stabellini@eu.citrix.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: Stefano Stabellini , xen-devel@lists.xensource.com Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Hi Stefano, On 10/10/2014 12:43, Stefano Stabellini wrote: > +static int __gnttab_cache_flush(gnttab_cache_flush_t *cflush) > +{ > + struct domain *d, *owner; > + struct page_info *page; > + uint64_t mfn; > + void *v; > + > + if ( (cflush->offset >= PAGE_SIZE) || > + (cflush->length > PAGE_SIZE) || > + (cflush->offset + cflush->length > PAGE_SIZE) ) > + return -EINVAL; > + > + if ( cflush->length == 0 || cflush->op == 0 ) > + return 0; > + > + /* currently unimplemented */ > + if ( cflush->op & GNTTAB_CACHE_SOURCE_GREF ) > + return -EOPNOTSUPP; I may have miss a part of the discussion. What is the purpose of introducing a flag that is not supported? Do we expect to implement on Xen 4.6? -- Julien Grall