[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v8 11/12] spapr: introduce a new sPAPR IRQ backend
From: |
Cédric Le Goater |
Subject: |
Re: [Qemu-ppc] [PATCH v8 11/12] spapr: introduce a new sPAPR IRQ backend supporting XIVE and XICS |
Date: |
Wed, 19 Dec 2018 20:15:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
[ ... ]
>>> +static qemu_irq spapr_qirq_dual(sPAPRMachineState *spapr, int irq)
>>> +{
>>> + return spapr_irq_current(spapr)->qirq(spapr, irq);
>>> +}
>>
>> This still makes me really nervous - I'd really prefer to have qirqs
>> independent of the backend, rather than relying on *every* irq using
>> device never looking up qirqs in advance.
>
> I will take a look. This is a large rework I won't have time to address
> this year. I have removed the dual machine from v9.
>
> You would move the qirq array at the machine level ?
I took a look today and did a few changes :
- move the qirq array at the machine level
- introduced a 'set_irq' method to sPAPR IRQ
- adapted the 'qirq' method of sPAPR IRQ. We still need to perform some
checks and to handle the IRQ number offset.
It falls well in place, a part for the ICS source of the PnvPSI model
which does not have any qirq anymore. For PSI, I am thinking of moving
the qirq array under PnvPSI model, like I did for the machine.
Would that be ok ?
I think there are a couple more possible cleanups on the different ICS
models to do if these changes are acceptable.
C.
- Re: [Qemu-ppc] [PATCH v8 09/12] spapr: set the interrupt presenter at reset, (continued)
Re: [Qemu-ppc] [PATCH v8 09/12] spapr: set the interrupt presenter at reset, David Gibson, 2018/12/17
[Qemu-ppc] [PATCH v8 08/12] spapr: introduce an 'ic-mode' machine option, Cédric Le Goater, 2018/12/11
[Qemu-ppc] [PATCH v8 10/12] spapr: enable XIVE MMIOs at reset, Cédric Le Goater, 2018/12/11
[Qemu-ppc] [PATCH v8 11/12] spapr: introduce a new sPAPR IRQ backend supporting XIVE and XICS, Cédric Le Goater, 2018/12/11
[Qemu-ppc] [PATCH v8 12/12] spapr: change default CPU type to POWER9, Cédric Le Goater, 2018/12/11
Re: [Qemu-ppc] [PATCH v8 00/12] ppc: support for the XIVE interrupt controller (POWER9), David Gibson, 2018/12/17