qemu-server/PVE
Fabian Ebner 2c4ba4c3ee migration: fix calculation of bandwith limit for non-disk migration
The case with:
1. no generic 'migration' limit from the storage plugin
2. a migrate_speed limit in the VM config
was broken. It would assign 0 to migrate_speed when picking the minimum value
and then default to the default value. Fix it by checking if bwlimit is 0
before picking the minimum.

Also, make it a bit more readable by avoiding the trick of //-assigning bwlimit
before the units match up and relying on getting back the original bwlimit value
as the minimum. Instead, only ||-assign after the units match up and don't rely
on other things.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-04-18 18:30:41 +02:00
..
API2 api: restore: better error messages 2021-04-06 10:20:26 +02:00
CLI qm status: sort hash keys on verbose output 2021-03-11 15:04:26 +01:00
QemuServer cfg2cmd: fix +pveN machine types with pxe 2021-04-18 17:58:56 +02:00
VZDump extract register_qmeventd_handle to QemuServer.pm 2021-04-01 10:58:13 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm snapshot: set migration caps before savevm-start 2021-03-16 20:44:51 +01:00
QemuMigrate.pm migration: fix calculation of bandwith limit for non-disk migration 2021-04-18 18:30:41 +02:00
QemuServer.pm restore: update config: remove unused parameter 2021-04-18 18:10:28 +02:00
QMPClient.pm tree wide cleanups 2020-10-16 18:03:32 +02:00