From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 for 4.5] xen/arm: Add support for GICv3 for domU Date: Wed, 5 Nov 2014 10:56:07 +0000 Message-ID: <1415184967.11486.84.camel@citrix.com> References: <1414872625-2961-1-git-send-email-julien.grall@linaro.org> <1415183041.11486.74.camel@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 1XlyGb-0003Qx-84 for xen-devel@lists.xenproject.org; Wed, 05 Nov 2014 10:56:45 +0000 In-Reply-To: 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: Wei Liu , Ian Jackson , Vijaya Kumar K , Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich , xen-devel@lists.xenproject.org, Daniel De Graaf List-Id: xen-devel@lists.xenproject.org On Wed, 2014-11-05 at 10:31 +0000, Stefano Stabellini wrote: > On Wed, 5 Nov 2014, Ian Campbell wrote: > > > + * hardware GIC. Only the value XEN_DOMCTL_CONFIG_GIC_DEFAULT > > > + * is allowed. The DOMCTL will return the actual version of the > > > + * GIC. > > > + */ > > > + if ( domctl->u.configuredomain.gic_version != XEN_DOMCTL_CONFIG_GIC_DEFAULT ) > > > + return -EOPNOTSUPP; > > > > EOPNOTSUPP doesn't seem quite right. EPARM or EINVAL perhaps? > > > > I'm also tempted to suggest that we should accept gic_version == the hw > > value, i.e. by moping the switch below up and including > > && domctl->u.configuredomain.gic_version != gic_version > > in the condition. > > I suggested to use -EOPNOTSUPP because one day we want to be able to use > this hypercall to choose a specific gic_version for the guest domain, > including gicv2 on gicv3 hardware for example. Why is EOPNOTSUPP an appropriate error code for that though? Ian.