]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration: Use VIR_DOMAIN_PAUSED_API_ERROR
authorJiri Denemark <jdenemar@redhat.com>
Wed, 1 Mar 2023 11:55:18 +0000 (12:55 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 15 Mar 2023 09:52:14 +0000 (10:52 +0100)
commita9a36fb9e1b27d1f4eb236fba132953a2cf21061
treee0a5ae667592b9dd16e4aff8e83de5586debce91
parentb1b037fa5b4444243d72eadf0e31aa0f3e9389cb
qemu_migration: Use VIR_DOMAIN_PAUSED_API_ERROR

Other APIs that internally use QEMU migration and need to temporarily
suspend a domain already report failure to resume vCPUs by setting
VIR_DOMAIN_PAUSED_API_ERROR state reason and emitting
VIR_DOMAIN_EVENT_SUSPENDED event with
VIR_DOMAIN_EVENT_SUSPENDED_API_ERROR.

Let's do the same in qemuMigrationSrcRestoreDomainState for consistent
behavior.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c