summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin Wolf2016-09-20 13:38:44 +0200
committerKevin Wolf2016-09-23 13:36:10 +0200
commit716df21707b9c95d61c86e1df9105d0cefe59a97 (patch)
tree8f1d58314e1a0aca32e9952786263ed9777f0d2f /docs
parentblock: Accept device model name for blockdev-open/close-tray (diff)
downloadqemu-716df21707b9c95d61c86e1df9105d0cefe59a97.tar.gz
qemu-716df21707b9c95d61c86e1df9105d0cefe59a97.tar.xz
qemu-716df21707b9c95d61c86e1df9105d0cefe59a97.zip
block: Accept device model name for x-blockdev-insert-medium
In order to remove the need for BlockBackend names in the external API, we want to allow qdev device names in all device related commands. This converts x-blockdev-insert-medium to accept a qdev device name. As the command is experimental, we can still remove the 'device' option that uses the BlockBackend name. This requires some test case changes and is left for another series. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/qmp-commands.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 9e230f51f7..ebb65e0ad8 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -3328,7 +3328,9 @@ Stay away from it unless you want to help with its development.
Arguments:
-- "device": block device name (json-string)
+- "device": block device name (deprecated, use @id instead)
+ (json-string, optional)
+- "id": the name or QOM path of the guest device (json-string, optional)
- "node-name": root node of the BDS tree to insert into the block device
Example:
@@ -3342,7 +3344,7 @@ Example:
<- { "return": {} }
-> { "execute": "x-blockdev-insert-medium",
- "arguments": { "device": "ide1-cd0",
+ "arguments": { "id": "ide0-1-0",
"node-name": "node0" } }
<- { "return": {} }