From: Ian Campbell Subject: Re: [PATCH v2 12/15] xen/arm: move GIC data to driver from domain structure Date: Thu, 10 Apr 2014 10:21:04 +0100 Message-ID: <1397121664.9862.56.camel@kazak.uk.xensource.com> References: <1396612593-443-1-git-send-email-vijay.kilari@gmail.com> <1396612593-443-13-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1396612593-443-13-git-send-email-vijay.kilari@gmail.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: vijay.kilari@gmail.com Cc: stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com, julien.grall@linaro.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-04 at 17:26 +0530, vijay.kilari@gmail.com wrote: > From: Vijaya Kumar K > > Move driver specific GIC address information to driver > header file gic.h from domain.h. Like with the other gic state I think you can avoid dynamic allocation, at least for now. (OTOH if you find the vcpu struct is getting too big, please say) Does the v3 gic have a different set of addresses? Actually I see that you just add dbase_size and rbase to the struct so I'm not sure it really needs refactoring like this. Either a union or just struct ... { /* common */ ... pending_irq ... dbase /* vgic v2 only */ ... cbase /* vgic v3 only */ ... rbase } vgic would be fine here IMHO...