]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: allow migration with assigned PCI hostdev if <teaming> is set
authorLaine Stump <laine@redhat.com>
Fri, 10 Jan 2020 00:39:47 +0000 (19:39 -0500)
committerLaine Stump <laine@redhat.com>
Wed, 29 Jan 2020 20:33:29 +0000 (15:33 -0500)
commit2758f680b7d586baf084f340b153d7706b8ce12b
treef795970f95a5d528c2387cfe848db2d6d447f23e
parenteb9f6cc4b3464707cf689fda9812e5129003bf27
qemu: allow migration with assigned PCI hostdev if <teaming> is set

Normally a PCI hostdev can't be migrated, so
qemuMigrationSrcIsAllowedHostdev() won't permit it. In the case of a a
hostdev network interface that has <teaming type='transient'/> set,
QEMU will automatically unplug the device prior to migration, and
re-plug a corresponding device on the destination. This patch modifies
qemuMigrationSrcIsAllowedHostdev() to allow domains with those devices
to be migrated.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_migration.c