[PATCH 0/2] ppc: Rename power5+ and power7+ for the new QOM naming rules

Thomas Huth posted 2 patches 3 months, 2 weeks ago
Failed in applying to current master (apply log)
There is a newer version of this series
docs/about/deprecated.rst |  9 +++++++++
hw/ppc/spapr_cpu_core.c   |  4 ++--
qom/object.c              |  4 ----
target/ppc/cpu-models.c   | 10 ++++++----
4 files changed, 17 insertions(+), 10 deletions(-)
[PATCH 0/2] ppc: Rename power5+ and power7+ for the new QOM naming rules
Posted by Thomas Huth 3 months, 2 weeks ago
We can get rid of the "power5+" / "power7+" hack in qom/object.c
by using CPU aliases for those names instead (first patch).

I think in the long run, we should get rid of the names with a "+"
in it completely, so the second patch suggests to deprecate those,
but I'd also be fine if we keep the aliases around, so in that case
please ignore the second patch.

Thomas Huth (2):
  target/ppc/cpu-models: Rename power5+ and power7+ for new QOM naming
    rules
  docs/about: Deprecate the old "power5+" and "power7+" CPU names

 docs/about/deprecated.rst |  9 +++++++++
 hw/ppc/spapr_cpu_core.c   |  4 ++--
 qom/object.c              |  4 ----
 target/ppc/cpu-models.c   | 10 ++++++----
 4 files changed, 17 insertions(+), 10 deletions(-)

-- 
2.43.0
Re: [PATCH 0/2] ppc: Rename power5+ and power7+ for the new QOM naming rules
Posted by Peter Krempa 3 months, 2 weeks ago
On Thu, Jan 11, 2024 at 17:46:50 +0100, Thomas Huth wrote:
> We can get rid of the "power5+" / "power7+" hack in qom/object.c
> by using CPU aliases for those names instead (first patch).
> 
> I think in the long run, we should get rid of the names with a "+"
> in it completely, so the second patch suggests to deprecate those,
> but I'd also be fine if we keep the aliases around, so in that case
> please ignore the second patch.
> 
> Thomas Huth (2):
>   target/ppc/cpu-models: Rename power5+ and power7+ for new QOM naming
>     rules
>   docs/about: Deprecate the old "power5+" and "power7+" CPU names

libvirt seems to be explicitly referencing power7+ in the code, so I
guess we'll need code to translate the + versions to the spellt-out
version to preserve compatibility.
Re: [PATCH 0/2] ppc: Rename power5+ and power7+ for the new QOM naming rules
Posted by Thomas Huth 3 months, 1 week ago
On 12/01/2024 13.48, Peter Krempa wrote:
> On Thu, Jan 11, 2024 at 17:46:50 +0100, Thomas Huth wrote:
>> We can get rid of the "power5+" / "power7+" hack in qom/object.c
>> by using CPU aliases for those names instead (first patch).
>>
>> I think in the long run, we should get rid of the names with a "+"
>> in it completely, so the second patch suggests to deprecate those,
>> but I'd also be fine if we keep the aliases around, so in that case
>> please ignore the second patch.
>>
>> Thomas Huth (2):
>>    target/ppc/cpu-models: Rename power5+ and power7+ for new QOM naming
>>      rules
>>    docs/about: Deprecate the old "power5+" and "power7+" CPU names
> 
> libvirt seems to be explicitly referencing power7+ in the code, so I
> guess we'll need code to translate the + versions to the spellt-out
> version to preserve compatibility.

If it's too cumbersome, we could also keep the alias enabled in QEMU, i.e. 
drop the second patch...?

  Thomas