]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Public API for post-copy migration bandwidth
authorJiri Denemark <jdenemar@redhat.com>
Mon, 4 Feb 2019 16:08:36 +0000 (17:08 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 7 Feb 2019 15:25:59 +0000 (16:25 +0100)
commitcdc1b1d71b0afdc7a3639eac1bd899b274489996
tree8c1e3bc02242d357a0ff7dafcafa03a029ab1e8d
parent08d44263c81891f8064a90bda3bf8cb24d94e6a1
Public API for post-copy migration bandwidth

This patch adds a new VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY typed
parameter for virDomainMigrate3 and virDomainMigrateToURI3 for setting
maximum post-copy migration bandwidth.

In case the initial VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY value turns out
to be suboptimal a new VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY flag for
virDomainMigrateSetMaxSpeed and virDomainMigrateGetMaxSpeed may be used
to set/get the maximum post-copy migration bandwidth while migration is
already running.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-domain.h
src/libvirt-domain.c