Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-23 Thread Cédric Le Goater
On 07/20/2018 04:18 AM, David Gibson wrote: > On Fri, Jul 06, 2018 at 11:07:11AM +0200, Cédric Le Goater wrote: >> This proposal introduces a new IRQ number space layout using static >> numbers for all devices, depending on a device index, and a bitmap >> allocator for the MSI IRQ numbers which are

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-23 Thread Cédric Le Goater
On 07/20/2018 04:38 AM, David Gibson wrote: > On Fri, Jul 06, 2018 at 03:36:24PM +0200, Greg Kurz wrote: >> On Fri, 6 Jul 2018 11:07:11 +0200 >> Cédric Le Goater wrote: > [snip] >>> +/* >>> + * The register property of a VIO device is defined in livirt using a >>> + * base number + 0x1000 increme

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-19 Thread David Gibson
On Fri, Jul 06, 2018 at 03:36:24PM +0200, Greg Kurz wrote: > On Fri, 6 Jul 2018 11:07:11 +0200 > Cédric Le Goater wrote: [snip] > > +/* > > + * The register property of a VIO device is defined in livirt using a > > + * base number + 0x1000 increment and in QEMU by incrementing the base > > + * re

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-19 Thread David Gibson
On Fri, Jul 06, 2018 at 11:07:11AM +0200, Cédric Le Goater wrote: > This proposal introduces a new IRQ number space layout using static > numbers for all devices, depending on a device index, and a bitmap > allocator for the MSI IRQ numbers which are negotiated by the guest at > runtime. > > As th

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-06 Thread Cédric Le Goater
On 07/06/2018 04:16 PM, Greg Kurz wrote: > On Fri, 6 Jul 2018 15:27:17 +0200 > Cédric Le Goater wrote: > >> > +/* >>> + * The register property of a VIO device is defined in livirt using a >>> + * base number + 0x1000 increment and in QEMU by incrementing the base >>> + * register number 0x7100

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-06 Thread Greg Kurz
On Fri, 6 Jul 2018 15:27:17 +0200 Cédric Le Goater wrote: > > +/* > > + * The register property of a VIO device is defined in livirt using a > > + * base number + 0x1000 increment and in QEMU by incrementing the base > > + * register number 0x7100. > > + * > > + * The formula below tries to

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-06 Thread Greg Kurz
On Fri, 6 Jul 2018 11:07:11 +0200 Cédric Le Goater wrote: > This proposal introduces a new IRQ number space layout using static > numbers for all devices, depending on a device index, and a bitmap > allocator for the MSI IRQ numbers which are negotiated by the guest at > runtime. > > As the VIO

Re: [Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-06 Thread Cédric Le Goater
> +/* > + * The register property of a VIO device is defined in livirt using a > + * base number + 0x1000 increment and in QEMU by incrementing the base > + * register number 0x7100. > + * > + * The formula below tries to compute a unique index number from the > + * register value that will b

[Qemu-devel] [PATCH v4 1/3] spapr: introduce a fixed IRQ number space

2018-07-06 Thread Cédric Le Goater
This proposal introduces a new IRQ number space layout using static numbers for all devices, depending on a device index, and a bitmap allocator for the MSI IRQ numbers which are negotiated by the guest at runtime. As the VIO device model does not have a device index but a "reg" property, we intro