From e389c0049afae90de2b958afa439dd9f47b12c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 13:27:06 +0200 Subject: [PATCH] qmp-commands: move 'device_del' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 19 ------------------- qapi-schema.json | 13 ++++++++++++- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index d7104e8721..8adc1060dc 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -111,25 +111,6 @@ Notes: (2) It's possible to list device properties by running QEMU with the "-device DEVICE,\?" command-line argument, where DEVICE is the device's name -device_del ----------- - -Remove a device. - -Arguments: - -- "id": the device's ID or QOM path (json-string) - -Example: - --> { "execute": "device_del", "arguments": { "id": "net1" } } -<- { "return": {} } - -Example: - --> { "execute": "device_del", "arguments": { "id": "/machine/peripheral-anon/device[0]" } } -<- { "return": {} } - send-key ---------- diff --git a/qapi-schema.json b/qapi-schema.json index 1c4039a085..affcad129a 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3114,7 +3114,7 @@ # # Remove a device from a guest # -# @id: the name or QOM path of the device +# @id: the device's ID or QOM path # # Returns: Nothing on success # If @id is not a valid device, DeviceNotFound @@ -3127,6 +3127,17 @@ # for all devices. # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "device_del", +# "arguments": { "id": "net1" } } +# <- { "return": {} } +# +# -> { "execute": "device_del", +# "arguments": { "id": "/machine/peripheral-anon/device[0]" } } +# <- { "return": {} } +# ## { 'command': 'device_del', 'data': {'id': 'str'} }