The 'device' argument is deprecated. All real usage in the qemu driver
already uses 'id' as we populate the 'qomName' for everything except for
SD cards where throttling didn't work with libvirt for a very long time.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (qemuMonitorTestAddItemVerbatim(test,
"{\"execute\":\"block_set_io_throttle\","
- " \"arguments\":{\"device\": \"drive-virtio-disk1\","
+ " \"arguments\":{\"id\": \"drive-virtio-disk1\","
" \"bps\": 1,"
" \"bps_rd\": 2,"
" \"bps_wr\": 3,"
goto cleanup;
if (qemuMonitorJSONSetBlockIoThrottle(qemuMonitorTestGetMonitor(test),
- "drive-virtio-disk1", NULL, &info) < 0)
+ NULL, "drive-virtio-disk1", &info) < 0)
goto cleanup;
ret = 0;