summaryrefslogtreecommitdiffstats
path: root/hmp.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2017-05-18 11:16:38 +0200
committerStefan Hajnoczi2017-05-18 14:36:15 +0200
commit56821559f0ba682fe6b367815572e6f974d329ab (patch)
tree75e93f8fc47707f61c1f6ad5ac45c7609c8da15a /hmp.c
parentMerge remote-tracking branch 'quintela/tags/migration/20170517' into staging (diff)
parentramblock: add new hmp command "info ramblock" (diff)
downloadqemu-56821559f0ba682fe6b367815572e6f974d329ab.tar.gz
qemu-56821559f0ba682fe6b367815572e6f974d329ab.tar.xz
qemu-56821559f0ba682fe6b367815572e6f974d329ab.zip
Merge remote-tracking branch 'dgilbert/tags/pull-hmp-20170517' into staging
HMP pull # gpg: Signature made Wed 17 May 2017 07:03:39 PM BST # gpg: using RSA key 0x0516331EBC5BFDE7 # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A 9FA9 0516 331E BC5B FDE7 * dgilbert/tags/pull-hmp-20170517: ramblock: add new hmp command "info ramblock" utils: provide size_to_str() ramblock: add RAMBLOCK_FOREACH() Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index b9dd933e19..3dceaf809b 100644
--- a/hmp.c
+++ b/hmp.c
@@ -39,6 +39,7 @@
#include "qemu-io.h"
#include "qemu/cutils.h"
#include "qemu/error-report.h"
+#include "exec/ramlist.h"
#include "hw/intc/intc.h"
#ifdef CONFIG_SPICE
@@ -2743,6 +2744,11 @@ void hmp_info_dump(Monitor *mon, const QDict *qdict)
qapi_free_DumpQueryResult(result);
}
+void hmp_info_ramblock(Monitor *mon, const QDict *qdict)
+{
+ ram_block_dump(mon);
+}
+
void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdict)
{
Error *err = NULL;