]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: allow migration of generic <hostdev> with <teaming>
authorLaine Stump <laine@redhat.com>
Tue, 23 Feb 2021 22:21:56 +0000 (17:21 -0500)
committerLaine Stump <laine@redhat.com>
Wed, 24 Feb 2021 17:31:51 +0000 (12:31 -0500)
commit98e67d4d8ca933b5fa2ec4fbc35dfe7cd8b1547b
treeae952dd71529240377f6fbf11ad6c00c3f59afeb
parent4d94734ba8bceb33ea1b9fa0919155ede6a1fab2
qemu: allow migration of generic <hostdev> with <teaming>

Commit 010ed0856b and commit db64acfbda introduced the ability to use
the <teaming> element in a generic <hostdev> (previously it could only
be used with <interface type='hostdev'>). However, the patch omitted
one crucial detail - along with parsing the <teaming> element in
<hostdev>, and adding the necessary info to the qemu commandline, we
also need to modify qemuMigrationSrcIsAllowedHostdev() to allow
migration when the generic <hostdev> has a <teaming> element.

https://bugzilla.redhat.com/1927984

Fixes: 010ed0856bb06f439e6fdf44e4f529f53441c398
Reported-by: Yalan Zhang <yalzhang@redhat.com>
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c