]> xenbits.xensource.com Git - libvirt.git/commit
qemu_hotplug: Detach guestfwd using netdev_del
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Feb 2019 13:16:58 +0000 (14:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Feb 2019 08:20:40 +0000 (09:20 +0100)
commit112f3a8d0f324c0705326957cca4508602b25eba
tree075cccde7ca857fcb35aed5bbaa662fc9a8f528f
parent903315dc8ffeb2af651207f090a53526decabc92
qemu_hotplug: Detach guestfwd using netdev_del

https://bugzilla.redhat.com/show_bug.cgi?id=1624204

The guestfwd channels are -netdevs really. Hotunplug them as
such. Also, DEVICE_DELETED event is not triggered (surprisingly,
since we're not issuing device_del rather than netdev_del) and
associated chardev is removed automagically too. This means that
we need to do qemuDomainRemoveChrDevice() minus monitor call to
remove the chardev.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_hotplug.c