From 6d3962bf848ba06296554976f9fd86af805584bb Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Tue, 22 Nov 2011 17:26:46 -0200 Subject: qapi: Convert pmemsave Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hmp.c') diff --git a/hmp.c b/hmp.c index 67b3eb394b..96e3ce18c1 100644 --- a/hmp.c +++ b/hmp.c @@ -550,3 +550,14 @@ void hmp_memsave(Monitor *mon, const QDict *qdict) qmp_memsave(addr, size, filename, true, monitor_get_cpu_index(), &errp); hmp_handle_error(mon, &errp); } + +void hmp_pmemsave(Monitor *mon, const QDict *qdict) +{ + uint32_t size = qdict_get_int(qdict, "size"); + const char *filename = qdict_get_str(qdict, "filename"); + uint64_t addr = qdict_get_int(qdict, "val"); + Error *errp = NULL; + + qmp_pmemsave(addr, size, filename, &errp); + hmp_handle_error(mon, &errp); +} -- cgit v1.2.1