summaryrefslogtreecommitdiff
path: root/src/qemu/qemu_monitor_json.c
diff options
context:
space:
mode:
authorJiri Denemark <jdenemar@redhat.com>2017-10-26 20:47:16 +0200
committerJiri Denemark <jdenemar@redhat.com>2017-11-02 22:14:20 +0100
commitf6e2a70ae2c9b9e9452c1e88f15b8beda178aa4a (patch)
tree07cadbe9125651077bd0c4cad7993b7d62a66def /src/qemu/qemu_monitor_json.c
parentaf1d2fe2705a7f3ee4334208903897b804f05cbb (diff)
downloadlibvirt-f6e2a70ae2c9b9e9452c1e88f15b8beda178aa4a.tar.gz
qemu: Add support for max-bandwidth migration parameter
We already support several ways of setting migration bandwidth and this is not adding another one. With this patch we are able to read and write this parameter using query-migrate-parameters and migrate-set-parameters in one call with all other parameters. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
Diffstat (limited to 'src/qemu/qemu_monitor_json.c')
-rw-r--r--src/qemu/qemu_monitor_json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index 9f238bc30b..115610e50e 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -2706,6 +2706,7 @@ qemuMonitorJSONGetMigrationParams(qemuMonitorPtr mon,
PARSE_INT(cpuThrottleIncrement, "cpu-throttle-increment");
PARSE_STR(tlsCreds, "tls-creds");
PARSE_STR(tlsHostname, "tls-hostname");
+ PARSE_ULONG(maxBandwidth, "max-bandwidth");
PARSE_ULONG(downtimeLimit, "downtime-limit");
#undef PARSE_SET
@@ -2764,6 +2765,7 @@ qemuMonitorJSONSetMigrationParams(qemuMonitorPtr mon,
APPEND_INT(cpuThrottleIncrement, "cpu-throttle-increment");
APPEND_STR(tlsCreds, "tls-creds");
APPEND_STR(tlsHostname, "tls-hostname");
+ APPEND_ULONG(maxBandwidth, "max-bandwidth");
APPEND_ULONG(downtimeLimit, "downtime-limit");
#undef APPEND