[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v8a 5/6] xen/arm: split vgic driver into generic and vgic-v2 driver
On 07/03/2014 09:34 AM, vijay.kilari@xxxxxxxxx wrote: > int domain_vgic_init(struct domain *d) > { > int i; > @@ -75,6 +67,15 @@ int domain_vgic_init(struct domain *d) > else > d->arch.vgic.nr_lines = 0; /* We don't need SPIs for the guest */ > > + switch ( gic_hw_version() ) > + { > + case GIC_V2: > + vgic_v2_init(d); 4th time: vgic_v2_init can return an error, even though it's not the case right now. Please check the return. [..] > diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h > index 7c71d16..d310ca1 100644 > --- a/xen/include/asm-arm/vgic.h > +++ b/xen/include/asm-arm/vgic.h [..] > +struct vgic_ops { > + /* Initialize vGIC */ > + int (*vcpu_init)(struct vcpu *v); > + /* Domain specific initialization of vGIC */ > + int (*domain_init)(struct domain *d); > + /* SGI handler of vGIC */ > + int (*send_sgi)(struct vcpu *v, register_t sgir); By reviewing the VGIC-v3 support, I still don't think this is the right callback to add. You bypass the VGIC common emulation with your vgic_emulate... I would introduce a callback to emulate_sysreg rather than this send_sgi. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |