diff options
| author | Eduardo Habkost <ehabkost@redhat.com> | 2019-06-08 20:34:47 -0300 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-07-05 17:08:04 -0300 |
| commit | 79974027dc0de4e256b869e2d32168c1a44896d3 (patch) | |
| tree | 237d29554232bb146631b71142675a22293bb4e5 /hw/core/machine-qmp-cmds.c | |
| parent | 1b45842203540943b1e22fc30764456c035d8637 (diff) | |
| download | focaccia-qemu-79974027dc0de4e256b869e2d32168c1a44896d3.tar.gz focaccia-qemu-79974027dc0de4e256b869e2d32168c1a44896d3.zip | |
qmp: Add deprecation information to query-machines
Export machine type deprecation status through the query-machines QMP command. With this, libvirt and management software will be able to show this information to users and/or suggest changes to VM configuration to avoid deprecated machines. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190608233447.27970-2-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/machine-qmp-cmds.c')
| -rw-r--r-- | hw/core/machine-qmp-cmds.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/machine-qmp-cmds.c b/hw/core/machine-qmp-cmds.c index 754ce77664..5bd95b8ab0 100644 --- a/hw/core/machine-qmp-cmds.c +++ b/hw/core/machine-qmp-cmds.c @@ -227,6 +227,7 @@ MachineInfoList *qmp_query_machines(Error **errp) info->cpu_max = !mc->max_cpus ? 1 : mc->max_cpus; info->hotpluggable_cpus = mc->has_hotpluggable_cpus; info->numa_mem_supported = mc->numa_mem_supported; + info->deprecated = !!mc->deprecation_reason; entry = g_malloc0(sizeof(*entry)); entry->value = info; |