]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/core/machine-qmp-cmds.c
qmp: Add deprecation information to query-machines
[mirror_qemu.git] / hw / core / machine-qmp-cmds.c
index 754ce776640668df6039eba4d379e6beebdc8e97..5bd95b8ab0b89374333511da10ee3a91485bd506 100644 (file)
@@ -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;