]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: Don't build device string in qemuDomainDetachChrDevice
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Feb 2019 09:38:09 +0000 (10:38 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Feb 2019 12:42:07 +0000 (13:42 +0100)
commit0c17685760a3ec8bf06c793d47d82dd51428451a
treef5e12d7f839d983c368f2bdf2a04418db3800448
parent17ddfd420a0dbcdd3f76fbecf7428acb301db188
qemu_hotplug: Don't build device string in qemuDomainDetachChrDevice

This is basically an old artefact from 24b0821926e when the idea
was:

1) Build device string only to see if chardev has any -device
associated with it and thus if device_del is needed
2) Detach chardev using chardev_del

Now, that DEVICE and DEVICE_DELETED capabilities are assumed for
every domain 1) does not make sense anymore.

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