mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
migrate: remove QMP/HMP commands for speed, downtime and cache size
The generic 'migrate_set_parameters' command handle all types of param. Only the QMP commands were documented in the deprecations page, but the rationale for deprecating applies equally to HMP, and the replacements exist. Furthermore the HMP commands are just shims to the QMP commands, so removing the latter breaks the former unless they get re-implemented. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
8becb36063
commit
cbde7be900
17 changed files with 40 additions and 320 deletions
|
@ -149,11 +149,11 @@ class Engine(object):
|
|||
"state": True }
|
||||
])
|
||||
|
||||
resp = src.command("migrate_set_speed",
|
||||
value=scenario._bandwidth * 1024 * 1024)
|
||||
resp = src.command("migrate-set-parameters",
|
||||
max_bandwidth=scenario._bandwidth * 1024 * 1024)
|
||||
|
||||
resp = src.command("migrate_set_downtime",
|
||||
value=scenario._downtime / 1024.0)
|
||||
resp = src.command("migrate-set-parameters",
|
||||
downtime_limit=scenario._downtime / 1024.0)
|
||||
|
||||
if scenario._compression_mt:
|
||||
resp = src.command("migrate-set-capabilities",
|
||||
|
@ -182,9 +182,11 @@ class Engine(object):
|
|||
{ "capability": "xbzrle",
|
||||
"state": True }
|
||||
])
|
||||
resp = src.command("migrate-set-cache-size",
|
||||
value=(hardware._mem * 1024 * 1024 * 1024 / 100 *
|
||||
scenario._compression_xbzrle_cache))
|
||||
resp = src.command("migrate-set-parameters",
|
||||
xbzrle_cache_size=(
|
||||
hardware._mem *
|
||||
1024 * 1024 * 1024 / 100 *
|
||||
scenario._compression_xbzrle_cache))
|
||||
|
||||
resp = src.command("migrate", uri=connect_uri)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue