From: Ian Campbell Subject: Re: [PATCH v2 09/15] xen/arm: segregate VGIC low level functionality Date: Thu, 10 Apr 2014 10:08:29 +0100 Message-ID: <1397120909.9862.46.camel@kazak.uk.xensource.com> References: <1396612593-443-1-git-send-email-vijay.kilari@gmail.com> <1396612593-443-10-git-send-email-vijay.kilari@gmail.com> <533EBE01.70601@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <533EBE01.70601@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: vijay.kilari@gmail.com, stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com, xen-devel@lists.xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-04 at 15:13 +0100, Julien Grall wrote: > > +DT_DEVICE_START(gicv2, "VGIC", DEVICE_VGIC) > > + .compatible = vgicv2_dt_compat, > > + .init = vgic_v2_init, > > +DT_DEVICE_END > > + > > hrm ... VGIC is not a device, if you don't plan to support different > VGIC per domain then you can directly return the vgic callbacks for the > gic drivers. Agreed, and if we were to support different VGIC per domain then it would have to be driven by some sort of toolstack config option, domctl etc, and not by the compat strings in the host DT. So best to just register the vgic v2 ops when initialising gic v2 and similar for v3 I think. Ian.