@@ -338,6 +338,32 @@ Example:
EQMP
{
+ .name = "drive_unplug",
+ .args_type = "id:s",
+ .params = "device",
+ .help = "unplug block device",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_drive_unplug,
+ },
+
+SQMP
+drive unplug
+----------
+
+Unplug a block device.
+
+Arguments:
+
+- "id": the device's ID (json-string)
+
+Example:
+
+-> { "execute": "drive_unplug", "arguments": { "id": "drive-virtio-blk1" } }
+<- { "return": {} }
+
+EQMP
+
+ {
.name = "cpu",
.args_type = "index:i",
.params = "index",
Signed-off-by: Ryan Harper <ryanh@us.ibm.com> --- qmp-commands.hx | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-)