Re: [Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-21 Thread Alexander Graf
On 21.05.14 10:46, Alexey Kardashevskiy wrote: On 05/21/2014 06:34 PM, Alexander Graf wrote: On 15.05.14 11:59, Alexey Kardashevskiy wrote: The current allocator returns IRQ numbers from a pool and does not support IRQs reuse in any form as it did not keep track of what it previously returned,

Re: [Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 06:34 PM, Alexander Graf wrote: > > On 15.05.14 11:59, Alexey Kardashevskiy wrote: >> The current allocator returns IRQ numbers from a pool and does not >> support IRQs reuse in any form as it did not keep track of what it >> previously returned, it only keeps the last returned IRQ.

Re: [Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-21 Thread Alexander Graf
On 15.05.14 11:59, Alexey Kardashevskiy wrote: The current allocator returns IRQ numbers from a pool and does not support IRQs reuse in any form as it did not keep track of what it previously returned, it only keeps the last returned IRQ. Some use cases such as PCI hot(un)plug may require IRQ re

[Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-15 Thread Alexey Kardashevskiy
The current allocator returns IRQ numbers from a pool and does not support IRQs reuse in any form as it did not keep track of what it previously returned, it only keeps the last returned IRQ. Some use cases such as PCI hot(un)plug may require IRQ release and reallocation. This moves an allocator f