]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
migrate: Fix cpu-throttle-increment regression in HMP
authorEric Blake <eblake@redhat.com>
Fri, 9 Sep 2016 03:14:14 +0000 (22:14 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 22:10:51 +0000 (17:10 -0500)
Commit 69ef1f3 accidentally broke migrate_set_parameter's ability
to set the cpu-throttle-increment to anything other than the
default, because it forgot to parse the user's string into an
integer.

CC: qemu-stable@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit bb2b777cf9a2862fe31a40256659ff49ae3d2006)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hmp.c

diff --git a/hmp.c b/hmp.c
index cc2056e9e23b05f7cc996d580dc6c31a450e2419..bb45f7ffe453473c32802cc9d241e7acfdb94d07 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -1284,6 +1284,7 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict)
                 break;
             case MIGRATION_PARAMETER_CPU_THROTTLE_INCREMENT:
                 has_cpu_throttle_increment = true;
+                use_int_value = true;
                 break;
             case MIGRATION_PARAMETER_TLS_CREDS:
                 has_tls_creds = true;