mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block: Accept device model name for block_set_io_throttle
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 block_set_io_throttle to accept a qdev device name. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
70e2cb3bd7
commit
7a9877a026
3 changed files with 16 additions and 10 deletions
|
@ -1459,7 +1459,9 @@ Change I/O throttle limits for a block drive.
|
|||
|
||||
Arguments:
|
||||
|
||||
- "device": device name (json-string)
|
||||
- "device": block device name (deprecated, use @id instead)
|
||||
(json-string, optional)
|
||||
- "id": the name or QOM path of the guest device (json-string, optional)
|
||||
- "bps": total throughput limit in bytes per second (json-int)
|
||||
- "bps_rd": read throughput limit in bytes per second (json-int)
|
||||
- "bps_wr": write throughput limit in bytes per second (json-int)
|
||||
|
@ -1483,7 +1485,7 @@ Arguments:
|
|||
|
||||
Example:
|
||||
|
||||
-> { "execute": "block_set_io_throttle", "arguments": { "device": "virtio0",
|
||||
-> { "execute": "block_set_io_throttle", "arguments": { "id": "ide0-1-0",
|
||||
"bps": 1000000,
|
||||
"bps_rd": 0,
|
||||
"bps_wr": 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue