aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorPierre Morel <pmorel@linux.ibm.com>2023-10-16 20:39:14 +0200
committerThomas Huth <thuth@redhat.com>2023-10-20 07:16:53 +0200
commitad2d1afc1d7158e1d94f6f7a3efe6efc15dca51c (patch)
treee5e2a774ccae45c0fd8e6bb0536ac40cf35e7b1e /qapi
parenta457c2ab5af7d69fd96f0aef2d33800bdc082b8c (diff)
downloadqemu-ad2d1afc1d7158e1d94f6f7a3efe6efc15dca51c.zip
qemu-ad2d1afc1d7158e1d94f6f7a3efe6efc15dca51c.tar.gz
qemu-ad2d1afc1d7158e1d94f6f7a3efe6efc15dca51c.tar.bz2
machine: adding s390 topology to query-cpu-fast
S390x provides two more topology attributes, entitlement and dedication. Let's add these CPU attributes to the QAPI command query-cpu-fast. Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com> Co-developed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com> Message-ID: <20231016183925.2384704-11-nsg@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/machine.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/qapi/machine.json b/qapi/machine.json
index 17b69a6..b4bd26f 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -57,9 +57,16 @@
#
# @cpu-state: the virtual CPU's state
#
+# @dedicated: the virtual CPU's dedication (since 8.2)
+#
+# @entitlement: the virtual CPU's entitlement (since 8.2)
+#
# Since: 2.12
##
-{ 'struct': 'CpuInfoS390', 'data': { 'cpu-state': 'CpuS390State' } }
+{ 'struct': 'CpuInfoS390',
+ 'data': { 'cpu-state': 'CpuS390State',
+ '*dedicated': 'bool',
+ '*entitlement': 'CpuS390Entitlement' } }
##
# @CpuInfoFast: