migration: Allow RECOVER->PAUSED convertion for dest qemu
commit0e99bb8f54418231baa084f1d8270e7500e48245
authorPeter Xu <peterx@redhat.com>
Wed, 4 Oct 2023 22:02:39 +0000 (4 18:02 -0400)
committerJuan Quintela <quintela@redhat.com>
Wed, 11 Oct 2023 09:17:02 +0000 (11 11:17 +0200)
tree6e536998a36f21d465bb63aab404aba64b2211b8
parent5274274c262edc6738ddc5c590dc0a08dd1090b1
migration: Allow RECOVER->PAUSED convertion for dest qemu

There's a bug on dest that if a double fault triggered on dest qemu (a
network issue during postcopy-recover), we won't set PAUSED correctly
because we assumed we always came from ACTIVE.

Fix that by always overwriting the state to PAUSE.

We could also check for these two states, but maybe it's an overkill.  We
did the same on the src QEMU to unconditionally switch to PAUSE anyway.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231004220240.167175-10-peterx@redhat.com>
migration/savevm.c