]> git.proxmox.com Git - qemu.git/blobdiff - qmp-commands.hx
virtio: properly validate address before accessing config
[qemu.git] / qmp-commands.hx
index d15bec1f07fd53ff723133bebecfacc12489b9cb..ffd130edf637ac885f5fc38d835946b6c1420450 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
 
     {