X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=hmp.c;h=eb96618e1ed2dcfabd0094ee8df46280864c1cfb;hb=c83c66c3b58893a4dc056e272822beb88fe9ec7f;hp=9cf2d1345bcfe738a9d92bc98fedef8c79d1fb34;hpb=49f54371f22e3e95124e8115050cea29fadde606;p=mirror_qemu.git diff --git a/hmp.c b/hmp.c index 9cf2d1345b..eb96618e1e 100644 --- a/hmp.c +++ b/hmp.c @@ -835,8 +835,10 @@ void hmp_block_stream(Monitor *mon, const QDict *qdict) Error *error = NULL; const char *device = qdict_get_str(qdict, "device"); const char *base = qdict_get_try_str(qdict, "base"); + int64_t speed = qdict_get_try_int(qdict, "speed", 0); - qmp_block_stream(device, base != NULL, base, &error); + qmp_block_stream(device, base != NULL, base, + qdict_haskey(qdict, "speed"), speed, &error); hmp_handle_error(mon, &error); } @@ -934,3 +936,12 @@ void hmp_migrate(Monitor *mon, const QDict *qdict) qemu_mod_timer(status->timer, qemu_get_clock_ms(rt_clock)); } } + +void hmp_device_del(Monitor *mon, const QDict *qdict) +{ + const char *id = qdict_get_str(qdict, "id"); + Error *err = NULL; + + qmp_device_del(id, &err); + hmp_handle_error(mon, &err); +}