From 4d700430a20b3d53b7b15bc5f6666f7e570e3f2c Mon Sep 17 00:00:00 2001 From: Michal Novotny Date: Mon, 25 Mar 2013 17:31:33 +0100 Subject: 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 Signed-off-by: Luiz Capitulino --- monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 2d9e8878eb..e450919269 100644 --- a/monitor.c +++ b/monitor.c @@ -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, }, -- cgit v1.2.1