mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-05 22:12:18 -10:00
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 <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Zhao Liu <[email protected]> Acked-by: Thomas Huth <[email protected]> Message-ID: <[email protected]>
21 lines
419 B
JSON
21 lines
419 B
JSON
# -*- Mode: Python -*-
|
|
# vim: filetype=python
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
##
|
|
# = Machines S390 data types
|
|
##
|
|
|
|
##
|
|
# @S390CpuEntitlement:
|
|
#
|
|
# An enumeration of CPU entitlements that can be assumed by a virtual
|
|
# S390 CPU
|
|
#
|
|
# Since: 8.2
|
|
##
|
|
{ 'enum': 'S390CpuEntitlement',
|
|
'data': [ 'auto', 'low', 'medium', 'high' ] }
|