[libvirt] [PATCH 2/2] qemu: hotplug: Reset device removal waiting code after vCPU unplug

Jiri Denemark jdenemar at redhat.com
Fri Mar 10 08:00:08 UTC 2017


On Fri, Mar 03, 2017 at 16:11:50 +0100, Peter Krempa wrote:
> 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 | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)

ACK

Jirka




More information about the libvir-list mailing list