mirror of https://github.com/proxmox/mirror_qemu
migrate: Fix cpu-throttle-increment regression in HMP
Commit69ef1f3
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 commitbb2b777cf9
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
parent
4a25ab2a04
commit
4d45fe11d1
1
hmp.c
1
hmp.c
|
@ -1284,6 +1284,7 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict)
|
||||||
break;
|
break;
|
||||||
case MIGRATION_PARAMETER_CPU_THROTTLE_INCREMENT:
|
case MIGRATION_PARAMETER_CPU_THROTTLE_INCREMENT:
|
||||||
has_cpu_throttle_increment = true;
|
has_cpu_throttle_increment = true;
|
||||||
|
use_int_value = true;
|
||||||
break;
|
break;
|
||||||
case MIGRATION_PARAMETER_TLS_CREDS:
|
case MIGRATION_PARAMETER_TLS_CREDS:
|
||||||
has_tls_creds = true;
|
has_tls_creds = true;
|
||||||
|
|
Loading…
Reference in New Issue