[PATCH] qemu: Don't emit SUSPENDED_POSTCOPY event on destination

Ján Tomko jtomko at redhat.com
Thu Jan 16 13:23:59 UTC 2020


On Thu, Jan 16, 2020 at 02:17:49PM +0100, Jiri Denemark wrote:
>When pause-before-switchover QEMU capability is enabled, we get STOP
>event before MIGRATION event with postcopy-active state. To properly
>handle post-copy migration and emit correct events commit
>v4.10.0-rc1-4-geca9d21e6c added a hack to
>qemuProcessHandleMigrationStatus which translates the paused state
>reason to VIR_DOMAIN_PAUSED_POSTCOPY and emits
>VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY event when migration state changes
>to post-copy.
>
>However, the code was effective on both sides of migration resulting in
>a confusing VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY event on the destination
>host, where entering post-copy mode is already properly advertised by
>VIR_DOMAIN_EVENT_RESUMED_POSTCOPY event.
>
>https://bugzilla.redhat.com/show_bug.cgi?id=1791458
>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
> src/qemu/qemu_process.c | 1 +
> 1 file changed, 1 insertion(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200116/9f81f840/attachment-0001.sig>


More information about the libvir-list mailing list