[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link pr
From: |
Cédric Le Goater |
Subject: |
Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties |
Date: |
Thu, 8 Jun 2017 18:08:44 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
>>> FWIW, other people do that as well (see hw/i386/pc_q35.c for example).
>>
>> well, I don't see the benefits of changing a string constant by a
>> define.
>>
>
> Improved semantics, especially since the "xics" string appears in
> many places with different meanings.
ah ? If so, we should do a cleanup up. The code seems consistent from
what I can see. xics is a general name for :
'PowerPC interrupt controller (type 2)'
and it is mostly used as a prefix. There are no "xics" object, only a
XICSFabric which is a QOM interface of the machine with a bunch of
handlers. It worked out pretty well for sPAPR and PowerNV.
It won't be the case for XIVE, the interrupt controller (type 3) for
the P9. It is more complex and there are quite a lot of internal
states which will need to be gathered under an object. We can keep
the ICPState fortunately but the sources are quite different.
C.
- [Qemu-ppc] [PATCH v4 0/6] spapr/xics: fix migration of older machine types, Greg Kurz, 2017/06/08
- [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Greg Kurz, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Cédric Le Goater, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Greg Kurz, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Cédric Le Goater, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Greg Kurz, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties,
Cédric Le Goater <=
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Greg Kurz, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Cédric Le Goater, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, David Gibson, 2017/06/08
- Re: [Qemu-ppc] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties, Cédric Le Goater, 2017/06/09
[Qemu-ppc] [PATCH v4 2/6] xics: pass appropriate types to realize() handlers., Greg Kurz, 2017/06/08
[Qemu-ppc] [PATCH v4 3/6] xics: setup cpu at realize time, Greg Kurz, 2017/06/08
[Qemu-ppc] [PATCH v4 4/6] xics: drop ICPStateClass::cpu_setup() handler, Greg Kurz, 2017/06/08
[Qemu-ppc] [PATCH v4 5/6] xics: directly register ICPState objects to vmstate, Greg Kurz, 2017/06/08