diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-11-22 17:26:46 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-12-06 11:40:01 -0200 |
commit | 6d3962bf848ba06296554976f9fd86af805584bb (patch) | |
tree | ae183f38bbce67bf78493fabd6b4a145543b9615 /hmp.c | |
parent | 0cfd6a9ab4356cd2c69bb29b1d70e1fd037bc1f2 (diff) | |
download | qemu-6d3962bf848ba06296554976f9fd86af805584bb.zip qemu-6d3962bf848ba06296554976f9fd86af805584bb.tar.gz qemu-6d3962bf848ba06296554976f9fd86af805584bb.tar.bz2 |
qapi: Convert pmemsave
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); +} |