]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationSrcBeginPhase: Don't offer 'nbd' in cookie if there are no disks to...
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Apr 2021 15:31:53 +0000 (17:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Apr 2021 15:22:30 +0000 (17:22 +0200)
commit53c49c88f0a1a5eba29054c0967cbea5abbc33ed
treee22cf439a204636edf583ad19b1a2469c03d86f2
parent763a88a3589a88098f4d3615f596e2938a07ce0f
qemuMigrationSrcBeginPhase: Don't offer 'nbd' in cookie if there are no disks to migrate

Don't try to setup disk migration and the NBD stuff if we end up
migrating nothing.

The destination side has luckily no setup for the non-NBD cases so
omitting the element fully is okay.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c