]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: implement driver's shutdown/shutdown wait methods
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Thu, 9 Jul 2020 08:12:26 +0000 (11:12 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Mon, 7 Sep 2020 06:33:59 +0000 (09:33 +0300)
commit399039a6b1d07610294cc810ac7a01b51ff6b5cf
tree1fc76746893bd89c7f92686b5960c5e830e93e02
parent860a999802d3c82538373bb3f314f92a2e258754
qemu: implement driver's shutdown/shutdown wait methods

On shutdown we just stop accepting new jobs for worker thread so that on
shutdown wait we can exit worker thread faster. Yes we basically stop
processing of events for VMs but we are going to do so anyway in case of daemon
shutdown.

At the same time synchronous event processing that some API calls may require
are still possible as per VM event loop is still running and we don't need
worker thread for synchronous event processing.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_driver.c