From: Ian Campbell Subject: Re: [PATCH v3 08/16] arm/xen: move GIC context data structure to gic driver Date: Wed, 23 Apr 2014 15:57:40 +0100 Message-ID: <1398265060.18537.158.camel@kazak.uk.xensource.com> References: <1397560675-29861-1-git-send-email-vijay.kilari@gmail.com> <1397560675-29861-9-git-send-email-vijay.kilari@gmail.com> <534D7D67.60800@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <534D7D67.60800@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 Tue, 2014-04-15 at 19:41 +0100, Julien Grall wrote: > Hello Vijaya, > > Thank you for your patch. > > On 04/15/2014 12:17 PM, vijay.kilari@gmail.com wrote: > > diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-arm/domain.h > > index 999bbdd..be1b084 100644 > > --- a/xen/include/asm-arm/domain.h > > +++ b/xen/include/asm-arm/domain.h > > @@ -8,6 +8,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > > > @@ -260,8 +261,7 @@ struct arch_vcpu > > uint32_t csselr; > > register_t vmpidr; > > > > - uint32_t gic_hcr, gic_vmcr, gic_apr; > > - uint32_t gic_lr[64]; > > I would add a comment such as "GIC state" here. If that isn't obvious from the name of the union then a comment isn't going to help. > > + union gic_state_data gic; > > uint64_t event_mask; > > uint64_t lr_mask; > > [..] > > > +struct gic_v2 { > > + uint32_t hcr, vmcr; > > + uint32_t apr; > > + uint32_t lr[64]; > > +}; > > + > > Even if with the name you know it's GICv2. Can you document quickly the > structure? Lets not ask him to continually shave yaks as part of this. These were clear enough before and they are clear enough now. Ian.