qemu: ensure domain event thread is always stopped
qemu: ensure domain event thread is always stopped

In previous commit:

  commit e6afacb0feabd9bf58331aa0e5259a35378be74e
  Author: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>
  Date:   Wed Feb 12 12:26:11 2020 +0000

    qemu: start/stop an event loop thread for domains

A bogus comment was added claiming we didn't need to shutdown the
event thread in the qemuProcessStop method, because this would be
done in the monitor EOF callback. This was wrong because the EOF
callback only runs in the case of a QEMU crash or a guest initiated
clean shutdown & poweroff.  In the case where the libvirt admin
calls virDomainDestroy, the EOF callback never fires because we
have already unregistered the event callbacks. We must thus always
attempt to stop the event thread in qemuProcessStop.

Reviewed-by: Daniel Henrique Barboza <627b089ad62deae9aaf06ccfa2c9056df28927e0@gmail.com>
Reported-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Signed-off-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,crobinso/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,nertpinx/libvirt,libvirt/libvirt,nertpinx/libvirt,zippy2/libvirt,olafhering/libvirt,olafhering/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,olafhering/libvirt,libvirt/libvirt,crobinso/libvirt,zippy2/libvirt,jfehlig/libvirt,jfehlig/libvirt,libvirt/libvirt,crobinso/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,jardasgit/libvirt,jardasgit/libvirt,zippy2/libvirt