]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Call qemuSetupHostdevCGroup later during hotplug
authorJiri Denemark <jdenemar@redhat.com>
Thu, 14 Nov 2013 11:02:40 +0000 (12:02 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 15 Nov 2013 12:50:47 +0000 (13:50 +0100)
commit05e149f94cbd34e4c3d4e9c7f6871e13cfe03d8c
treea27f7bdcdaf145d423c38f6e8add2c76eb15bcc4
parentf417ad07df7c5aa3879ff8237c1a1cea50f093bb
qemu: Call qemuSetupHostdevCGroup later during hotplug

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

So far qemuSetupHostdevCGroup was called very early during hotplug, even
before we knew the device we were about to hotplug was actually
available. By calling the function later, we make sure QEMU won't be
allowed to access devices used by other domains.

Another important effect of this change is that hopluging USB devices
specified by vendor and product (but not by their USB address) works
again. This was broken since v1.0.5-171-g7d763ac, when the call to
qemuFindHostdevUSBDevice was moved after the call to
qemuSetupHostdevCGroup, which then used an uninitialized USB address.
src/qemu/qemu_hotplug.c