]> xenbits.xensource.com Git - libvirt.git/commit
qemu: update netdevs of the same mac addrs correctly
authorzhang bo <oscar.zhangbo@huawei.com>
Mon, 8 Jun 2015 08:25:10 +0000 (16:25 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 12 Jun 2015 17:04:39 +0000 (13:04 -0400)
commit798461a1a3e547c3f0dcd9d6aca25d474015946e
treed8485f9461789a83279e173cb96b468a3ca55dc3
parent785a8940eff01223fc813abaaf331c8a8225ec0c
qemu: update netdevs of the same mac addrs correctly

If a guest has multiple network devices with the same MAC address,
when we online update the second device, libvirtd always updates
the first one.

commit def31e4c forgot to fix the online updating scenario. We need to
use virDomainNetFindIdx() to find the correct network device.

Signed-off-by: Zhou Yimin <zhouyimin@huawei.com>
Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
src/qemu/qemu_hotplug.c