mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
migration: Avoid two src-downtime-end tracepoints for postcopy
Postcopy can trigger this tracepoint twice, while only the 1st one is valid. Avoid triggering the 2nd tracepoint just like what we do with recording the total downtime. Signed-off-by: Peter Xu <peterx@redhat.com> Tested-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Juraj Marcin <jmarcin@redhat.com> Link: https://lore.kernel.org/r/20250114230746.3268797-5-peterx@redhat.com Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
9cde9b435a
commit
812145fcf7
1 changed files with 1 additions and 2 deletions
|
@ -129,9 +129,8 @@ static void migration_downtime_end(MigrationState *s)
|
|||
*/
|
||||
if (!s->downtime) {
|
||||
s->downtime = now - s->downtime_start;
|
||||
trace_vmstate_downtime_checkpoint("src-downtime-end");
|
||||
}
|
||||
|
||||
trace_vmstate_downtime_checkpoint("src-downtime-end");
|
||||
}
|
||||
|
||||
static bool migration_needs_multiple_sockets(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue