From c72e768836d78c9d844428b541f7d27d54e7653d Mon Sep 17 00:00:00 2001 From: Michal Novotny Date: Mon, 8 Apr 2013 18:21:02 +0200 Subject: New cpu-max field in query-machines QMP command output Alter the query-machines QMP command to output information about maximum number of CPUs for each machine type with default value set to 1 in case the number of max_cpus is not set. Signed-off-by: Michal Novotny Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- vl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index d694a9039b..6547b5fe38 100644 --- 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; -- cgit v1.2.1