]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: migration: Remove QEMU_MONITOR_MIGRATE_BACKGROUND
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Sep 2022 11:04:54 +0000 (13:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 9 Sep 2022 14:10:47 +0000 (16:10 +0200)
commitbc753aa6f7045a574f7a2aafe1a5ead01d080a87
tree9c1ea2b362c2ac3ed327773b77ff8afd210ff5fd
parentd5fb23bc6e3ffd5003f5c6558780c8be13cc9ae9
qemu: migration: Remove QEMU_MONITOR_MIGRATE_BACKGROUND

'qemuMonitorJSONMigrate' is called from:
 - qemuMonitorMigrateToHost
 - qemuMonitorMigrateToSocket
   Both of the above function are called only from
   qemuMigrationSrcStart.

 - qemuMonitorMigrateToFd
   - called from:
     - qemuMigrationSrcToFile
       Both instances here pass QEMU_MONITOR_MIGRATE_BACKGROUND
       directly.
     - qemuMigrationSrcStart

qemuMigrationSrcStart is then called from qemuMigrationSrcRun and
qemuMigrationSrcResume, both of which always add QEMU_MONITOR_MIGRATE_BACKGROUND
to the flags.

Thus any caller always passes the flag so that we can remove the flag
altogether.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
tests/qemumonitorjsontest.c