]> Git Repo - qemu.git/commitdiff
migrate: Fix cpu-throttle-increment regression in HMP
authorEric Blake <[email protected]>
Fri, 9 Sep 2016 03:14:14 +0000 (22:14 -0500)
committerJuan Quintela <[email protected]>
Thu, 13 Oct 2016 15:22:38 +0000 (17:22 +0200)
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: [email protected]
Signed-off-by: Eric Blake <[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
hmp.c

diff --git a/hmp.c b/hmp.c
index 42bef84ed5c63532256f35ffb2e5e8ec3fc60c70..9509596e1b2a2002cb4bdee87fffa700a4133feb 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -1351,6 +1351,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;
This page took 0.030079 seconds and 4 git commands to generate.