]> xenbits.xensource.com Git - libvirt.git/commit
qemu: migration: Split source and destination migration checks
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Oct 2015 13:39:48 +0000 (15:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 7 Oct 2015 07:08:59 +0000 (09:08 +0200)
commitb866991f0c47c95a97ae4440eef99592b27bb8a8
treed613a97c6e967504fef1bcaf64352eb71e9d9995
parent62ff210e5d6542bda3f25ed5e96c5088a840ce1b
qemu: migration: Split source and destination migration checks

Extract the hostdev check from qemuMigrationIsAllowed into a separate
function since that is the only part that needs to be done in the v2
migration protocol prepare phase on the destination. All other checks
were added when the v3 protocol existed so they don't need to be
extracted.

This change will allow to drop the @def argument for
qemuMigrationIsAllowed and further simplify the function.
src/qemu/qemu_migration.c