]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Only label hostdev after checking device conflicts
authorCole Robinson <crobinso@redhat.com>
Thu, 5 Dec 2013 19:54:41 +0000 (14:54 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 9 Dec 2013 18:43:47 +0000 (13:43 -0500)
commitee414b5d6d1601bde8440a9de050c02447bbd3bf
treeb5376a4d6d3e412fcd3381501fecce960cf06fb4
parent24fbbb82636ee00a5f5ac3c960459696e96f2911
qemu: hotplug: Only label hostdev after checking device conflicts

Similar to what Jiri did for cgroup setup/teardown in 05e149f94, push
it all into the device handler functions so we can do the necessary prep
work before claiming the device.

This also fixes hotplugging USB devices by product/vendor (virt-manager's
default behavior):

https://bugzilla.redhat.com/show_bug.cgi?id=1016511
src/qemu/qemu_hotplug.c