Re: [Xen-devel] [RFC PATCH 09/10] ARM: vGIC: introduce vgic_get/put_pending_irq

2017-05-04 Thread Stefano Stabellini
On Thu, 4 May 2017, Julien Grall wrote: > > @@ -28,11 +27,20 @@ static inline int > > local_events_need_delivery_nomask(void) > > * case. > > */ > > if ( gic_events_need_delivery() ) > > -return 1; > > +{ > > +ret = 1; > > +} > > +else > > +{ > > +

Re: [Xen-devel] [RFC PATCH 09/10] ARM: vGIC: introduce vgic_get/put_pending_irq

2017-05-04 Thread Julien Grall
Hi Andre, On 04/05/17 16:31, Andre Przywara wrote: So far there is always a statically allocated struct pending_irq for each interrupt that we deal with. To prepare for dynamically allocated LPIs, introduce a put/get wrapper to get hold of a pending_irq pointer. So far get() just returns the sam

[Xen-devel] [RFC PATCH 09/10] ARM: vGIC: introduce vgic_get/put_pending_irq

2017-05-04 Thread Andre Przywara
So far there is always a statically allocated struct pending_irq for each interrupt that we deal with. To prepare for dynamically allocated LPIs, introduce a put/get wrapper to get hold of a pending_irq pointer. So far get() just returns the same pointer and put() is empty, but this change allows t