]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Assume migration with a network disk migration is safe
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Jan 2019 08:58:38 +0000 (09:58 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Feb 2019 13:03:42 +0000 (14:03 +0100)
commit86caae39537969ff87ce18d3e6bc1bb18181f61b
treef511ffd0416ee5b25d33340b0e7f9c6960e57c94
parent3bc3cca7bb43101730c94bc82762e5744420215a
qemu: Assume migration with a network disk migration is safe

If a domain has a disk that is type='network' we require specific
cache mode to allow migration with it (either 'directsync' or
'none'). This doesn't make much sense since network disks are
supposed to be safe to migrate by default.

At the same time, we should be checking for the actual source
type, not apparent type set in the domain XML.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_migration.c