X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=hmp.c;h=cd614e8720f70cd99595b57e1883d0a5b6ac2d21;hb=1f590cf9455c571799d1bfc0777255fa0796d4da;hp=ae16916da289cd7e521d0b5288c8acb41481eeef;hpb=51767e7cf2c3abc07d30009ab3d6262bdfd89b8b;p=qemu.git diff --git a/hmp.c b/hmp.c index ae16916da..cd614e872 100644 --- a/hmp.c +++ b/hmp.c @@ -662,6 +662,19 @@ void hmp_pmemsave(Monitor *mon, const QDict *qdict) hmp_handle_error(mon, &errp); } +void hmp_memchar_write(Monitor *mon, const QDict *qdict) +{ + uint32_t size; + const char *chardev = qdict_get_str(qdict, "device"); + const char *data = qdict_get_str(qdict, "data"); + Error *errp = NULL; + + size = strlen(data); + qmp_memchar_write(chardev, size, data, false, 0, &errp); + + hmp_handle_error(mon, &errp); +} + static void hmp_cont_cb(void *opaque, int err) { if (!err) {