]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Drop virDomainJobOperation parameter from virDomainObjIsPostcopy
authorJiri Denemark <jdenemar@redhat.com>
Wed, 7 Dec 2022 13:46:25 +0000 (14:46 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 6 Jan 2023 15:17:38 +0000 (16:17 +0100)
commitb92cba67c67551139e5421d97a66620e836a0523
tree24a3037bfa63a06c73aa9ebde0062b98430eb3f7
parent608c4b249e8b683b311d8b0205f23fdd6082d06a
conf: Drop virDomainJobOperation parameter from virDomainObjIsPostcopy

The parameter was only used to select which states correspond to an
active or failed post-copy migration. But these states are either
applicable to both operations or the check would just paper over a code
bug in case of an impossible combination of state and operation. By
dropping the check we can make the code simpler and also reuse existing
virDomainObjIsFailedPostcopy function and only check for active
post-copy states.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c