Re: [PATCH v2] migration: Fix qmp_query_migrate mbps value

2024-02-27 Thread Peter Xu
On Mon, Feb 26, 2024 at 11:33:35AM -0300, Fabiano Rosas wrote: > The QMP command query_migrate might see incorrect throughput numbers > if it runs after we've set the migration completion status but before > migration_calculate_complete() has updated s->total_time and s->mbps. > > The migration st

[PATCH v2] migration: Fix qmp_query_migrate mbps value

2024-02-26 Thread Fabiano Rosas
The QMP command query_migrate might see incorrect throughput numbers if it runs after we've set the migration completion status but before migration_calculate_complete() has updated s->total_time and s->mbps. The migration status would show COMPLETED, but the throughput value would be the one from