]> git.proxmox.com Git - qemu.git/blobdiff - vl.c
New QMP command query-cpu-max and HMP command cpu_max
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index aeed7f435dc09309e382059ba3af752bdd9e41b0..7643f163512bb5cf22a36797e9eeef5ba77eff0f 100644 (file)
--- 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 */