Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-27 Thread André Przywara
On 27/03/18 20:41, Stefano Stabellini wrote: > On Tue, 27 Mar 2018, Andre Przywara wrote: >> Hi, >> >> On 27/03/18 00:22, Stefano Stabellini wrote: >>> On Thu, 22 Mar 2018, Andre Przywara wrote: Processing maintenance interrupts and accessing the list registers are dependent on the

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-27 Thread Stefano Stabellini
On Tue, 27 Mar 2018, Andre Przywara wrote: > Hi, > > On 27/03/18 00:22, Stefano Stabellini wrote: > > On Thu, 22 Mar 2018, Andre Przywara wrote: > >> Processing maintenance interrupts and accessing the list registers > >> are dependent on the host's GIC version. > >> Introduce vgic-v2.c to

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-27 Thread Andre Przywara
Hi, On 27/03/18 00:22, Stefano Stabellini wrote: > On Thu, 22 Mar 2018, Andre Przywara wrote: >> Processing maintenance interrupts and accessing the list registers >> are dependent on the host's GIC version. >> Introduce vgic-v2.c to contain GICv2 specific functions. >> Implement the GICv2

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-26 Thread Stefano Stabellini
On Tue, 27 Mar 2018, Julien Grall wrote: > Hi, > Sorry for the formatting. > > On Tue, 27 Mar 2018, 07:25 Stefano Stabellini, wrote: > On Thu, 22 Mar 2018, Andre Przywara wrote: > > Processing maintenance interrupts and accessing the list registers > >

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-26 Thread Stefano Stabellini
On Mon, 26 Mar 2018, Stefano Stabellini wrote: > On Thu, 22 Mar 2018, Andre Przywara wrote: > > Processing maintenance interrupts and accessing the list registers > > are dependent on the host's GIC version. > > Introduce vgic-v2.c to contain GICv2 specific functions. > > Implement the GICv2

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-26 Thread Julien Grall
Hi, Sorry for the formatting. On Tue, 27 Mar 2018, 07:25 Stefano Stabellini, wrote: > On Thu, 22 Mar 2018, Andre Przywara wrote: > > Processing maintenance interrupts and accessing the list registers > > are dependent on the host's GIC version. > > Introduce vgic-v2.c

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-26 Thread Stefano Stabellini
On Thu, 22 Mar 2018, Andre Przywara wrote: > Processing maintenance interrupts and accessing the list registers > are dependent on the host's GIC version. > Introduce vgic-v2.c to contain GICv2 specific functions. > Implement the GICv2 specific code for syncing the emulation state > into the VGIC

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-22 Thread Julien Grall
Hi, On 03/22/2018 03:12 PM, Andre Przywara wrote: Hi, On 22/03/18 14:06, Julien Grall wrote: Hi Andre, On 03/22/2018 11:56 AM, Andre Przywara wrote: +    /* The locking order forces us to drop and re-take the locks here. */ +    if ( irq->hw ) +    { +   

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-22 Thread Andre Przywara
Hi, On 22/03/18 14:06, Julien Grall wrote: > Hi Andre, > > On 03/22/2018 11:56 AM, Andre Przywara wrote: >> +    /* The locking order forces us to drop and re-take the locks >> here. */ >> +    if ( irq->hw ) >> +    { >> +    spin_unlock(>irq_lock); >> + >> +    desc

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-22 Thread Andre Przywara
Hi, On 22/03/18 14:06, Julien Grall wrote: > Hi Andre, > > On 03/22/2018 11:56 AM, Andre Przywara wrote: >> +    /* The locking order forces us to drop and re-take the locks >> here. */ >> +    if ( irq->hw ) >> +    { >> +    spin_unlock(>irq_lock); >> + >> +    desc

Re: [Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-22 Thread Julien Grall
Hi Andre, On 03/22/2018 11:56 AM, Andre Przywara wrote: +/* The locking order forces us to drop and re-take the locks here. */ +if ( irq->hw ) +{ +spin_unlock(>irq_lock); + +desc = irq_to_desc(irq->hwintid); +spin_lock(>lock); +

[Xen-devel] [PATCH v3a 14/39] ARM: new VGIC: Add GICv2 world switch backend

2018-03-22 Thread Andre Przywara
Processing maintenance interrupts and accessing the list registers are dependent on the host's GIC version. Introduce vgic-v2.c to contain GICv2 specific functions. Implement the GICv2 specific code for syncing the emulation state into the VGIC registers. This also adds the hook to let Xen setup