diff options
| author | Alberto Garcia | 2018-03-09 15:11:07 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2018-05-15 16:11:41 +0200 |
| commit | 83592184d8692c818e083c3ce43f63ca2533fa85 (patch) | |
| tree | c660338722cad399b44d9fd77132517a0c097d19 /block/commit.c | |
| parent | block: Merge .bdrv_co_writev{,_flags} in drivers (diff) | |
| download | qemu-83592184d8692c818e083c3ce43f63ca2533fa85.tar.gz qemu-83592184d8692c818e083c3ce43f63ca2533fa85.tar.xz qemu-83592184d8692c818e083c3ce43f63ca2533fa85.zip | |
hmp: Allow using a qdev id in block_set_io_throttle
The QMP version of this command can take a qdev ID since 7a9877a02635,
but the HMP version is still using the deprecated block device name so
there's no way to refer to a block device added like this:
-blockdev node-name=disk0,driver=qcow2,file.driver=file,file.filename=hd.qcow2
-device virtio-blk-pci,id=virtio-blk-pci0,drive=disk0
This patch works around this problem by using the specified name as a
qdev ID if the block device name is not found.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions
