]> git.proxmox.com Git - qemu.git/blobdiff - qmp-commands.hx
New QMP command query-cpu-max and HMP command cpu_max
[qemu.git] / qmp-commands.hx
index 3aa6bd1bd9efcf9197e318f3dfad5bbfd7541362..2051fcb49ce2ea5b9437697bcad88046d88d170a 100644 (file)
@@ -382,6 +382,28 @@ Example:
 
 Note: CPUs' indexes are obtained with the 'query-cpus' command.
 
+EQMP
+
+    {
+        .name       = "query-cpu-max",
+        .args_type  = "",
+        .mhandler.cmd_new = qmp_marshal_input_query_cpu_max,
+    },
+
+SQMP
+query-cpu-max
+-------------
+
+Get the maximum CPUs supported by the machine being currently
+emulated.
+
+Returns json-int.
+
+Example:
+
+-> { "execute": "query-cpu-max" }
+<- { "return": 255 }
+
 EQMP
 
     {