[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 11/15] xen/arm: make GIC context data version specific



Hello Vijaya,

Thank you for the patch.

On 04/04/2014 12:56 PM, vijay.kilari@xxxxxxxxx wrote:
> From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx>
> 
> GIC context data is dependent on hardware version
> make the contents of gic context data structure
> as version specific and access accordingly
> 
> Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx>
> ---
>  xen/arch/arm/gic-v2.c     |   15 ++++++++-------
>  xen/include/asm-arm/gic.h |   11 ++++++++---
>  2 files changed, 16 insertions(+), 10 deletions(-)
> 
> diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c
> index 06ed12b..4bcb392 100644
> --- a/xen/arch/arm/gic-v2.c
> +++ b/xen/arch/arm/gic-v2.c
> @@ -96,6 +96,7 @@ static int gic_state_init(struct vcpu *v)
>       v->arch.gic_state = xzalloc(struct gic_state_data);
>       if ( !v->arch.gic_state )
>          return -ENOMEM;
> +     v->arch.gic_state->version = 2;

I would prefer an enum rather than a fixed number.

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.