]> git.proxmox.com Git - qemu.git/blobdiff - qmp-commands.hx
QMP: Add cpu-add command
[qemu.git] / qmp-commands.hx
index 0e891323c7ddccefb86f01461de8c41616a6e9fd..ed99eb80e052826a17dd63a4f9a3cedec228def1 100644 (file)
@@ -382,6 +382,29 @@ Example:
 
 Note: CPUs' indexes are obtained with the 'query-cpus' command.
 
+EQMP
+
+    {
+        .name       = "cpu-add",
+        .args_type  = "id:i",
+        .mhandler.cmd_new = qmp_marshal_input_cpu_add,
+    },
+
+SQMP
+cpu-add
+-------
+
+Adds virtual cpu
+
+Arguments:
+
+- "id": cpu id (json-int)
+
+Example:
+
+-> { "execute": "cpu-add", "arguments": { "id": 2 } }
+<- { "return": {} }
+
 EQMP
 
     {