migration: Avoid two src-downtime-end tracepoints for postcopy
authorPeter Xu <peterx@redhat.com>
Tue, 14 Jan 2025 23:07:34 +0000 (18:07 -0500)
committerFabiano Rosas <farosas@suse.de>
Wed, 29 Jan 2025 14:56:40 +0000 (11:56 -0300)
commit812145fcf7a6d290b69383dc5f25ed00360639d8
tree9befc9b2fa34717cc333338bbeff820b7f16f58d
parent9cde9b435a7d14ce39331935f4dfea4778400048
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>
migration/migration.c