Re: [Qemu-devel] [PATCH 1/3] spapr: split the IRQ allocation sequence

2018-06-18 Thread Cédric Le Goater
On 06/18/2018 02:16 PM, David Gibson wrote: > On Mon, Jun 18, 2018 at 02:00:06PM +1000, David Gibson wrote: >> On Fri, Jun 15, 2018 at 01:53:01PM +0200, Cédric Le Goater wrote: >>> Today, when a device requests for IRQ number in a sPAPR machine, the >>> spapr_irq_alloc() routine first scans the ICS

Re: [Qemu-devel] [PATCH 1/3] spapr: split the IRQ allocation sequence

2018-06-18 Thread David Gibson
On Mon, Jun 18, 2018 at 02:00:06PM +1000, David Gibson wrote: > On Fri, Jun 15, 2018 at 01:53:01PM +0200, Cédric Le Goater wrote: > > Today, when a device requests for IRQ number in a sPAPR machine, the > > spapr_irq_alloc() routine first scans the ICSState status array to > > find an empty slot an

Re: [Qemu-devel] [PATCH 1/3] spapr: split the IRQ allocation sequence

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 01:53:01PM +0200, Cédric Le Goater wrote: > Today, when a device requests for IRQ number in a sPAPR machine, the > spapr_irq_alloc() routine first scans the ICSState status array to > find an empty slot and then performs the assignement of the selected > numbers. Split this

[Qemu-devel] [PATCH 1/3] spapr: split the IRQ allocation sequence

2018-06-15 Thread Cédric Le Goater
Today, when a device requests for IRQ number in a sPAPR machine, the spapr_irq_alloc() routine first scans the ICSState status array to find an empty slot and then performs the assignement of the selected numbers. Split this sequence in two distinct routines : spapr_irq_find() for lookups and spapr