It is replaced by the new 'aliases' field.
Signed-off-by: Daniel P. Berrangé <[email protected]>
---
docs/about/deprecated.rst | 7 +++++++
qapi/machine.json | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index 0891bbc44de..88b21a018f9 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -182,6 +182,13 @@ execution. This special treatment of ``"no"`` is
deprecated. Use an
empty string instead. In a future version, ``"no"`` will be treated as
a plain file name.
+``alias`` field of ``MachineInfo`` (since 12.0)
+'''''''''''''''''''''''''''''''''''''''''''''''
+
+The ``MachineInfo`` struct now has an ``aliases`` field which
+can report multiple aliases per machine, thus the ``alias``
+field is now redundant.
+
Human Machine Protocol (HMP) commands
-------------------------------------
diff --git a/qapi/machine.json b/qapi/machine.json
index c25a492a4e8..40fda705462 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -199,11 +199,13 @@
# Features:
#
# @unstable: Member @compat-props is experimental.
+# @deprecated: Member @alias is replaced by @aliases.
#
# Since: 1.2
##
{ 'struct': 'MachineInfo',
- 'data': { 'name': 'str', '*alias': 'str',
+ 'data': { 'name': 'str',
+ '*alias': { 'type': 'str', 'features': ['deprecated'] },
'*aliases': ['str'],
'*is-default': 'bool', 'cpu-max': 'int',
'hotpluggable-cpus': 'bool', 'numa-mem-supported': 'bool',
--
2.56.1