mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block: Accept device model name for x-blockdev-remove-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-remove-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>
This commit is contained in:
parent
716df21707
commit
00949babe9
3 changed files with 28 additions and 19 deletions
|
@ -2410,12 +2410,15 @@
|
|||
# This command is still a work in progress and is considered experimental.
|
||||
# Stay away from it unless you want to help with its development.
|
||||
#
|
||||
# @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)
|
||||
#
|
||||
# Since: 2.5
|
||||
##
|
||||
{ 'command': 'x-blockdev-remove-medium',
|
||||
'data': { 'device': 'str' } }
|
||||
'data': { '*device': 'str',
|
||||
'*id': 'str' } }
|
||||
|
||||
##
|
||||
# @x-blockdev-insert-medium:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue