New QMP command query-cpu-max and HMP command cpu_max

These commands return the maximum number of CPUs supported by the
currently running emulator instance, as defined in its QEMUMachine
struct.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
Michal Novotny 2013-03-25 17:31:33 +01:00 committed by Luiz Capitulino
parent e5ecec7bad
commit 4d700430a2
7 changed files with 56 additions and 0 deletions

View file

@ -2745,6 +2745,13 @@ static mon_cmd_t info_cmds[] = {
.help = "show the TPM device",
.mhandler.cmd = hmp_info_tpm,
},
{
.name = "cpu_max",
.args_type = "",
.params = "",
.help = "Get maximum number of VCPUs supported by machine",
.mhandler.cmd = hmp_query_cpu_max,
},
{
.name = NULL,
},