]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainDetachChrDevice: Fix chardev hot-unplug
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 11 May 2015 15:05:21 +0000 (17:05 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 21 May 2015 15:49:02 +0000 (17:49 +0200)
commit04695f48b2440292d63210c012727584c65fe75f
tree179d25cae25be08eaf066d3f99566b7322e85fbf
parent9807c47147a92a423f632e799137a31acd3ac41e
qemuDomainDetachChrDevice: Fix chardev hot-unplug

Not every chardev is plugged onto virtio-serial bus. However, the
code introduced in 89e991a2aa36b04 assumes that. Incorrectly.
With previous patches we have three options where a chardev can
be plugged: virtio-serial, USB and PCI. This commit fixes the
detach part. However, since we are not auto allocating USB
addresses yet, I'm just marking the place where appropriate code
should go.

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