]> git.proxmox.com Git - qemu.git/blobdiff - vl.c
New cpu-max field in query-machines QMP command output
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index d694a9039b61b0b6b318f80ceb73264b3e49977d..6547b5fe38ab53b72b236cd45c3db797cc754c8a 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1617,6 +1617,7 @@ MachineInfoList *qmp_query_machines(Error **errp)
         }
 
         info->name = g_strdup(m->name);
+        info->cpu_max = !m->max_cpus ? 1 : m->max_cpus;
 
         entry = g_malloc0(sizeof(*entry));
         entry->value = info;