Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-24 Thread Stefano Stabellini
On Wed, 24 May 2017, Julien Grall wrote: > Hi Stefano, > > On 05/23/2017 07:23 PM, Stefano Stabellini wrote: > > On Tue, 23 May 2017, Julien Grall wrote: > > > Hi Stefano, > > > > > > On 23/05/17 00:48, Stefano Stabellini wrote: > > > > On Fri, 19 May 2017, Stefano Stabellini wrote: > > > > > On

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-24 Thread Julien Grall
Hi Stefano, On 05/23/2017 07:23 PM, Stefano Stabellini wrote: On Tue, 23 May 2017, Julien Grall wrote: Hi Stefano, On 23/05/17 00:48, Stefano Stabellini wrote: On Fri, 19 May 2017, Stefano Stabellini wrote: On Thu, 11 May 2017, Andre Przywara wrote: When LPIs get unmapped by a guest, they m

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-23 Thread Stefano Stabellini
On Tue, 23 May 2017, Julien Grall wrote: > Hi Stefano, > > On 23/05/17 00:48, Stefano Stabellini wrote: > > On Fri, 19 May 2017, Stefano Stabellini wrote: > > > On Thu, 11 May 2017, Andre Przywara wrote: > > > > When LPIs get unmapped by a guest, they might still be in some LR of > > > > some VCPU

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-23 Thread Andre Przywara
Hi Stefano, On 20/05/17 02:25, Stefano Stabellini wrote: > On Thu, 11 May 2017, Andre Przywara wrote: >> When LPIs get unmapped by a guest, they might still be in some LR of >> some VCPU. Nevertheless we remove the corresponding pending_irq >> (possibly freeing it), and detect this case (irq_to_pe

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-23 Thread Julien Grall
Hi Stefano, On 23/05/17 00:48, Stefano Stabellini wrote: On Fri, 19 May 2017, Stefano Stabellini wrote: On Thu, 11 May 2017, Andre Przywara wrote: When LPIs get unmapped by a guest, they might still be in some LR of some VCPU. Nevertheless we remove the corresponding pending_irq (possibly free

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-22 Thread Stefano Stabellini
On Fri, 19 May 2017, Stefano Stabellini wrote: > On Thu, 11 May 2017, Andre Przywara wrote: > > When LPIs get unmapped by a guest, they might still be in some LR of > > some VCPU. Nevertheless we remove the corresponding pending_irq > > (possibly freeing it), and detect this case (irq_to_pending()

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-19 Thread Stefano Stabellini
On Thu, 11 May 2017, Andre Przywara wrote: > When LPIs get unmapped by a guest, they might still be in some LR of > some VCPU. Nevertheless we remove the corresponding pending_irq > (possibly freeing it), and detect this case (irq_to_pending() returns > NULL) when the LR gets cleaned up later. > Ho

Re: [Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-17 Thread Julien Grall
Hi Andre, On 11/05/17 18:53, Andre Przywara wrote: When LPIs get unmapped by a guest, they might still be in some LR of some VCPU. Nevertheless we remove the corresponding pending_irq (possibly freeing it), and detect this case (irq_to_pending() returns NULL) when the LR gets cleaned up later. H

[Xen-devel] [PATCH v9 20/28] ARM: GICv3: handle unmapped LPIs

2017-05-11 Thread Andre Przywara
When LPIs get unmapped by a guest, they might still be in some LR of some VCPU. Nevertheless we remove the corresponding pending_irq (possibly freeing it), and detect this case (irq_to_pending() returns NULL) when the LR gets cleaned up later. However a *new* LPI may get mapped with the same number