summary refs log tree commit diff stats
path: root/monitor.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-04-27 15:00:53 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2017-04-28 16:50:16 +0100
commit38bb54f323bf7c83496b6a044cfd28896e997a00 (patch)
tree4ca142bec1e804cbf5dee061033f2994985a5409 /monitor.c
parent64a6047d54c66052bcf35b163fbdcd1f2a27f24f (diff)
downloadfocaccia-qemu-38bb54f323bf7c83496b6a044cfd28896e997a00.tar.gz
focaccia-qemu-38bb54f323bf7c83496b6a044cfd28896e997a00.zip
replication: Make --disable-replication compile again
Broken in commit daa33c5.

Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Message-id: 1493298053-17140-1-git-send-email-armbru@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 6289e5256c..62c9f81e8e 100644
--- a/monitor.c
+++ b/monitor.c
@@ -974,6 +974,11 @@ static void qmp_unregister_commands_hack(void)
 #ifndef CONFIG_SPICE
     qmp_unregister_command(&qmp_commands, "query-spice");
 #endif
+#ifndef CONFIG_REPLICATION
+    qmp_unregister_command(&qmp_commands, "xen-set-replication");
+    qmp_unregister_command(&qmp_commands, "query-xen-replication-status");
+    qmp_unregister_command(&qmp_commands, "xen-colo-do-checkpoint");
+#endif
 #ifndef TARGET_I386
     qmp_unregister_command(&qmp_commands, "rtc-reset-reinjection");
 #endif