|
@@ -135,6 +135,26 @@
|
|
|
##
|
|
|
{ 'command': 'query-cpus-fast', 'returns': [ 'CpuInfoFast' ] }
|
|
|
|
|
|
+##
|
|
|
+# @CompatProperty:
|
|
|
+#
|
|
|
+# Property default values specific to a machine type, for use by
|
|
|
+# scripts/compare-machine-types.
|
|
|
+#
|
|
|
+# @qom-type: name of the QOM type to which the default applies
|
|
|
+#
|
|
|
+# @property: name of its property to which the default applies
|
|
|
+#
|
|
|
+# @value: the default value (machine-specific default can overwrite
|
|
|
+# the "default" default, to avoid this use -machine none)
|
|
|
+#
|
|
|
+# Since: 9.1
|
|
|
+##
|
|
|
+{ 'struct': 'CompatProperty',
|
|
|
+ 'data': { 'qom-type': 'str',
|
|
|
+ 'property': 'str',
|
|
|
+ 'value': 'str' } }
|
|
|
+
|
|
|
##
|
|
|
# @MachineInfo:
|
|
|
#
|
|
@@ -166,6 +186,14 @@
|
|
|
#
|
|
|
# @acpi: machine type supports ACPI (since 8.0)
|
|
|
#
|
|
|
+# @compat-props: The machine type's compatibility properties. Only
|
|
|
+# present when query-machines argument @compat-props is true.
|
|
|
+# (since 9.1)
|
|
|
+#
|
|
|
+# Features:
|
|
|
+#
|
|
|
+# @unstable: Member @compat-props is experimental.
|
|
|
+#
|
|
|
# Since: 1.2
|
|
|
##
|
|
|
{ 'struct': 'MachineInfo',
|
|
@@ -173,18 +201,53 @@
|
|
|
'*is-default': 'bool', 'cpu-max': 'int',
|
|
|
'hotpluggable-cpus': 'bool', 'numa-mem-supported': 'bool',
|
|
|
'deprecated': 'bool', '*default-cpu-type': 'str',
|
|
|
- '*default-ram-id': 'str', 'acpi': 'bool' } }
|
|
|
+ '*default-ram-id': 'str', 'acpi': 'bool',
|
|
|
+ '*compat-props': { 'type': ['CompatProperty'],
|
|
|
+ 'features': ['unstable'] } } }
|
|
|
|
|
|
##
|
|
|
# @query-machines:
|
|
|
#
|
|
|
# Return a list of supported machines
|
|
|
#
|
|
|
+# @compat-props: if true, also return compatibility properties.
|
|
|
+# (default: false) (since 9.1)
|
|
|
+#
|
|
|
+# Features:
|
|
|
+#
|
|
|
+# @unstable: Argument @compat-props is experimental.
|
|
|
+#
|
|
|
# Returns: a list of MachineInfo
|
|
|
#
|
|
|
# Since: 1.2
|
|
|
+#
|
|
|
+# Example:
|
|
|
+#
|
|
|
+# -> { "execute": "query-machines", "arguments": { "compat-props": true } }
|
|
|
+# <- { "return": [
|
|
|
+# {
|
|
|
+# "hotpluggable-cpus": true,
|
|
|
+# "name": "pc-q35-6.2",
|
|
|
+# "compat-props": [
|
|
|
+# {
|
|
|
+# "qom-type": "virtio-mem",
|
|
|
+# "property": "unplugged-inaccessible",
|
|
|
+# "value": "off"
|
|
|
+# }
|
|
|
+# ],
|
|
|
+# "numa-mem-supported": false,
|
|
|
+# "default-cpu-type": "qemu64-x86_64-cpu",
|
|
|
+# "cpu-max": 288,
|
|
|
+# "deprecated": false,
|
|
|
+# "default-ram-id": "pc.ram"
|
|
|
+# },
|
|
|
+# ...
|
|
|
+# }
|
|
|
##
|
|
|
-{ 'command': 'query-machines', 'returns': ['MachineInfo'] }
|
|
|
+{ 'command': 'query-machines',
|
|
|
+ 'data': { '*compat-props': { 'type': 'bool',
|
|
|
+ 'features': [ 'unstable' ] } },
|
|
|
+ 'returns': ['MachineInfo'] }
|
|
|
|
|
|
##
|
|
|
# @CurrentMachineParams:
|