diff options
author | Michal Novotny <minovotn@redhat.com> | 2013-04-08 18:21:02 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-04-12 09:41:53 -0400 |
commit | c72e768836d78c9d844428b541f7d27d54e7653d (patch) | |
tree | 918fecbdc64875a783132695fa7e839df1c4f07e /vl.c | |
parent | 93b48c201eb6c0404d15550a0eaa3c0f7937e35e (diff) |
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 <minovotn@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |