diff options
| author | Eric Blake <eblake@redhat.com> | 2016-09-08 22:14:14 -0500 |
|---|---|---|
| committer | Juan Quintela <quintela@trasno.org> | 2016-10-13 17:22:38 +0200 |
| commit | bb2b777cf9a2862fe31a40256659ff49ae3d2006 (patch) | |
| tree | af1874eac0c257cf417cbe489a2b3144886685c5 /hmp.c | |
| parent | cd5ea070645682893312d67dba6d4dd0b1a80739 (diff) | |
| download | focaccia-qemu-bb2b777cf9a2862fe31a40256659ff49ae3d2006.tar.gz focaccia-qemu-bb2b777cf9a2862fe31a40256659ff49ae3d2006.zip | |
migrate: Fix cpu-throttle-increment regression in HMP
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>
Diffstat (limited to 'hmp.c')
| -rw-r--r-- | hmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c index 42bef84ed5..9509596e1b 100644 --- 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; |