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 --- vl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index aeed7f4..7643f16 100644 --- a/vl.c +++ b/vl.c @@ -662,6 +662,11 @@ StatusInfo *qmp_query_status(Error **errp) return info; } +int64_t qmp_query_cpu_max(Error **errp) +{ + return current_machine->max_cpus; +} + /***********************************************************/ /* real time host monotonic timer */ -- cgit v1.1