mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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>
This commit is contained in:
parent
154fd4d1a0
commit
32cfefb904
9 changed files with 23 additions and 26 deletions
|
@ -1188,12 +1188,12 @@ const PropertyInfo qdev_prop_uuid = {
|
|||
|
||||
/* --- s390 cpu entitlement policy --- */
|
||||
|
||||
QEMU_BUILD_BUG_ON(sizeof(CpuS390Entitlement) != sizeof(int));
|
||||
QEMU_BUILD_BUG_ON(sizeof(S390CpuEntitlement) != sizeof(int));
|
||||
|
||||
const PropertyInfo qdev_prop_cpus390entitlement = {
|
||||
.name = "CpuS390Entitlement",
|
||||
.name = "S390CpuEntitlement",
|
||||
.description = "low/medium (default)/high",
|
||||
.enum_table = &CpuS390Entitlement_lookup,
|
||||
.enum_table = &S390CpuEntitlement_lookup,
|
||||
.get = qdev_propinfo_get_enum,
|
||||
.set = qdev_propinfo_set_enum,
|
||||
.set_default_value = qdev_propinfo_set_default_value_enum,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue