]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuMigrate.pm
bwlimit: honor bwlimit for migrate qmp call
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 1 Apr 2019 09:30:58 +0000 (11:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 2 Apr 2019 08:34:40 +0000 (10:34 +0200)
commitddd664d739e82fa3d1ec166deb174f74338afddd
tree8da1246575c355e95a5e83db90e1e12b5bef11d8
parentf17fb184c6e2a1bbd43d4c2125455d88d8e91e62
bwlimit: honor bwlimit for migrate qmp call

The 'migrate_speed' can be set in the VM config. Additionally the 'migrate'
bwlimit from datacenter.cfg (storage-specific limits play no role for
memory+state migration) or the parameter provided to the API call can restrict
the speed. Take the lower of the two.

This patch also refactors the setting of migrate_speed and comments for clarity.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/QemuMigrate.pm