aboutsummaryrefslogtreecommitdiff
path: root/qapi/machine.json
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2023-02-28 09:12:34 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-03-01 11:36:53 +0100
commitb97f3147b0a3992ea079d5ce29b755984f30ba4f (patch)
treeff62e6ea7f64fae99280bb4370e349f4990d429f /qapi/machine.json
parent33dc95d032a86dd007073d72cf006f663c614de2 (diff)
downloadqemu-b97f3147b0a3992ea079d5ce29b755984f30ba4f.zip
qemu-b97f3147b0a3992ea079d5ce29b755984f30ba4f.tar.gz
qemu-b97f3147b0a3992ea079d5ce29b755984f30ba4f.tar.bz2
qapi: Add 'acpi' field to 'query-machines' output
Report which machine types support ACPI so that management applications can properly use the 'acpi' property even on platforms such as ARM where support for ACPI depends on the machine type and thus checking presence of '-machine acpi=' in 'query-command-line-options' is insufficient. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Message-Id: <537625d3e25d345052322c42ca19812b98b4f49a.1677571792.git.pkrempa@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/machine.json')
-rw-r--r--qapi/machine.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/machine.json b/qapi/machine.json
index b9228a5..604b686 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -155,6 +155,8 @@
#
# @default-ram-id: the default ID of initial RAM memory backend (since 5.2)
#
+# @acpi: machine type supports ACPI (since 8.0)
+#
# Since: 1.2
##
{ 'struct': 'MachineInfo',
@@ -162,7 +164,7 @@
'*is-default': 'bool', 'cpu-max': 'int',
'hotpluggable-cpus': 'bool', 'numa-mem-supported': 'bool',
'deprecated': 'bool', '*default-cpu-type': 'str',
- '*default-ram-id': 'str' } }
+ '*default-ram-id': 'str', 'acpi': 'bool' } }
##
# @query-machines: