aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2017-06-27 12:10:19 +0800
committerJuan Quintela <quintela@redhat.com>2017-06-28 11:18:39 +0200
commit9d18af93b39544a829f398c9e0cfd0e6ae7deb13 (patch)
tree7d6e41f1b9879ead0dcbdb8f488dfc4a9a739dec /hmp.c
parent4ffdb337e74f9a4dae97ea0396d4e1a3dbb13723 (diff)
migration: hmp: dump globals
Now we have some globals that can be configured for migration. Dump them in HMP info migration for better debugging. (we can also use this to monitor whether COMPAT fields are applied correctly on compatible machines) Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-11-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 8c72c58b20..4c41cac625 100644
--- a/hmp.c
+++ b/hmp.c
@@ -43,6 +43,7 @@
#include "exec/ramlist.h"
#include "hw/intc/intc.h"
#include "migration/snapshot.h"
+#include "migration/misc.h"
#ifdef CONFIG_SPICE
#include <spice/enums.h>
@@ -164,6 +165,8 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
info = qmp_query_migrate(NULL);
caps = qmp_query_migrate_capabilities(NULL);
+ migration_global_dump(mon);
+
/* do not display parameters during setup */
if (info->has_status && caps) {
monitor_printf(mon, "capabilities: ");