]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Reset device removal waiting code after vCPU unplug
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Mar 2017 15:04:57 +0000 (16:04 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 10 Mar 2017 07:18:20 +0000 (08:18 +0100)
commit8af68ea47830b8d32907dc50c6ca4869d14bb862
tree0563482db4e9f6dcad3094f409b68ae2e417cf15
parentd59ca1204893f5826feebbc99ab249150aef74b2
qemu: hotplug: Reset device removal waiting code after vCPU unplug

If the delivery of the DEVICE_DELETED event for the vCPU being deleted
would time out, the code would not call 'qemuDomainResetDeviceRemoval'.

Since the waiting thread did not unregister itself prior to stopping the
waiting the monitor code would try to wake it up instead of dispatching
it to the event worker. As a result the unplug process would not be
completed and the definition would not be updated.

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