]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add optional unit to qemuMigrationParamsTPMapItem
authorJiri Denemark <jdenemar@redhat.com>
Thu, 31 Jan 2019 09:02:17 +0000 (10:02 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 7 Feb 2019 15:25:59 +0000 (16:25 +0100)
commitc160275d9c4760fdfb04721dc94122f4f12e046d
tree6ab9141b6703d5f6080b2576729dd0fb60a5a08a
parent9e7a163b138e867a68c9627743991812e201602c
qemu: Add optional unit to qemuMigrationParamsTPMapItem

Some migration parameters supported by libvirt may use units that differ
from the units used by QEMU for the corresponding parameters. For
example, libvirt defines migration bandwidth in MiB/s while QEMU expects
B/s. Let's add a unit field to qemuMigrationParamsTPMapItem for
automatic conversion when translating between libvirt's migration typed
parameters and QEMU's migration paramteres.

This patch is a preparation for future parameters as the existing
VIR_MIGRATE_PARAM_BANDWIDTH parameter is set using "migrate_set_speed"
QMP command rather than "migrate-set-parameters" for backward
compatibility.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration_params.c