]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Calculate expected downtime on demand
authorPeter Xu <peterx@redhat.com>
Tue, 21 Apr 2026 20:21:05 +0000 (16:21 -0400)
committerPeter Xu <peterx@redhat.com>
Tue, 5 May 2026 16:35:25 +0000 (12:35 -0400)
commitdd4fe8844b52b986fa19e7c03ddec11680f76b9b
tree54efab3f3db0c9200d782c1d77c8f2b6547ae28a
parent474838440f77ac5b360a182fbadbc5c03a09b4d5
migration: Calculate expected downtime on demand

This value does not need to be calculated as frequent.  Only calculate it
on demand when query-migrate happened.  With that we can remove the
variable in MigrationState.

This paves way for fixing this value to include all modules (not only RAM
but others too).

Reviewed-by: Juraj Marcin <jmarcin@redhat.com>
Link: https://lore.kernel.org/r/20260421202110.306051-12-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/migration.c
migration/migration.h