qapi/machine: Rename CpuS390* to S390Cpu*, and drop 'prefix'
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Sep 2024 11:18:26 +0000 (13:18 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 10 Sep 2024 11:22:47 +0000 (13:22 +0200)
commit32cfefb904cae766d56adf7a802bc1ce2ddf2440
tree3fe10eb0fd055c1e3167f3a6917afa5efe0c1929
parent154fd4d1a09c4fb53f21bce94793253eeaf279db
qapi/machine: Rename CpuS390* to S390Cpu*, and drop 'prefix'

QAPI's 'prefix' feature can make the connection between enumeration
type and its constants less than obvious.  It's best used with
restraint.

CpuS390Entitlement has a 'prefix' to change the generated enumeration
constants' prefix from CPU_S390_ENTITLEMENT to S390_CPU_ENTITLEMENT.
Rename the type to S390CpuEntitlement, so that 'prefix' is not needed.

Likewise change CpuS390Polarization to S390CpuPolarization, and
CpuS390State to S390CpuState.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240904111836.3273842-10-armbru@redhat.com>
hw/core/qdev-properties-system.c
hw/s390x/cpu-topology.c
include/hw/qdev-properties-system.h
include/hw/s390x/cpu-topology.h
qapi/machine-common.json
qapi/machine-target.json
qapi/machine.json
qapi/pragma.json
target/s390x/cpu.h