]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't report failure to destroy a destroyed domain
authorJiri Denemark <jdenemar@redhat.com>
Fri, 8 Sep 2017 18:44:34 +0000 (20:44 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 11 Sep 2017 14:32:15 +0000 (16:32 +0200)
commitc5d1dcbcd904c8a27b4addf7cf6debcbdd641d75
tree7dd276de0c1d2008c0c58703a00a6b6038c231e3
parentecd53ca43a7512621066e6c3c3964b805d3debb1
qemu: Don't report failure to destroy a destroyed domain

When destroying a domain libvirt marks it internally with a
beingDestroyed flag to make sure the qemuDomainDestroyFlags API itself
cleans up after the domain rather than letting an uninformed EOF handler
do it. However, when the domain is being started at the moment libvirt
was asked to destroy it, only the starting thread can properly clean up
after the domain and thus it ignores the beingDestroyed flag. Once
qemuDomainDestroyFlags finally gets a job, the domain may not be running
anymore, which should not be reported as an error if the domain has been
starting up.

https://bugzilla.redhat.com/show_bug.cgi?id=1445600

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_driver.c