diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-09-20 13:38:47 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-09-23 13:44:47 +0200 |
commit | 70e2cb3bd75fc7aa988f81eae854001e8fcbffe1 (patch) | |
tree | f5b489862fe403b946d72f2d30097c54816b58cc /qapi | |
parent | fbe2d8163e8900fe22c67f55bd09ebc6f322f430 (diff) |
block: Accept device model name for blockdev-change-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 blockdev-change-medium to accept a qdev device name.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/block-core.json | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index e370366786..1d7d4cc8a0 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -2470,7 +2470,10 @@ # combines blockdev-open-tray, x-blockdev-remove-medium, # x-blockdev-insert-medium and blockdev-close-tray). # -# @device: block device name +# @device: #optional Block device name (deprecated, use @id instead) +# +# @id: #optional The name or QOM path of the guest device +# (since: 2.8) # # @filename: filename of the new image to be loaded # @@ -2483,7 +2486,8 @@ # Since: 2.5 ## { 'command': 'blockdev-change-medium', - 'data': { 'device': 'str', + 'data': { '*device': 'str', + '*id': 'str', 'filename': 'str', '*format': 'str', '*read-only-mode': 'BlockdevChangeReadOnlyMode' } } |