Re: [Xen-devel] [PATCH v10 11/32] ARM: GICv3: forward pending LPIs to guests

2017-05-31 Thread Julien Grall
Hi Stefano, On 31/05/2017 18:56, Stefano Stabellini wrote: On Wed, 31 May 2017, Julien Grall wrote: Hi Stefano, On 30/05/17 23:07, Stefano Stabellini wrote: On Tue, 30 May 2017, Julien Grall wrote: }; }; @@ -136,6 +135,80 @@ uint64_t gicv3_get_redist_address(unsigned int cpu, bool use

Re: [Xen-devel] [PATCH v10 11/32] ARM: GICv3: forward pending LPIs to guests

2017-05-31 Thread Stefano Stabellini
On Wed, 31 May 2017, Julien Grall wrote: > Hi Stefano, > > On 30/05/17 23:07, Stefano Stabellini wrote: > > On Tue, 30 May 2017, Julien Grall wrote: > > > > }; > > > > }; > > > > > > > > @@ -136,6 +135,80 @@ uint64_t gicv3_get_redist_address(unsigned int cpu, > > > > bool use_pta) > > > >

Re: [Xen-devel] [PATCH v10 11/32] ARM: GICv3: forward pending LPIs to guests

2017-05-31 Thread Julien Grall
Hi Stefano, On 30/05/17 23:07, Stefano Stabellini wrote: On Tue, 30 May 2017, Julien Grall wrote: }; }; @@ -136,6 +135,80 @@ uint64_t gicv3_get_redist_address(unsigned int cpu, bool use_pta) return per_cpu(lpi_redist, cpu).redist_id << 16; } +static void vgic_vcpu_inject_lpi(s

Re: [Xen-devel] [PATCH v10 11/32] ARM: GICv3: forward pending LPIs to guests

2017-05-30 Thread Stefano Stabellini
On Tue, 30 May 2017, Julien Grall wrote: > Hi Andre, > > On 26/05/17 18:35, Andre Przywara wrote: > > Upon receiving an LPI on the host, we need to find the right VCPU and > > virtual IRQ number to get this IRQ injected. > > Iterate our two-level LPI table to find the domain ID and the virtual > >

Re: [Xen-devel] [PATCH v10 11/32] ARM: GICv3: forward pending LPIs to guests

2017-05-30 Thread Julien Grall
Hi Andre, On 26/05/17 18:35, Andre Przywara wrote: Upon receiving an LPI on the host, we need to find the right VCPU and virtual IRQ number to get this IRQ injected. Iterate our two-level LPI table to find the domain ID and the virtual LPI number quickly when the host takes an LPI. We then look