]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: check for active domain after agent interaction
authorEric Blake <eblake@redhat.com>
Wed, 20 Aug 2014 21:29:44 +0000 (15:29 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 22 Aug 2014 20:30:52 +0000 (14:30 -0600)
commit2c551d34a9117599ee9e4599bc4adf3d1a5bc5e2
tree1b4d72675635f96553899232cd09c294caa86c8d
parentc585334bdd97f516dfe362373ff62b5a492cb5e2
qemu: check for active domain after agent interaction

Commit b606bbb41 reminded me that any time we drop locks to run
back-to-back guest interaction commands, we have to check that
the guest didn't disappear in between the two commands.  A quick
audit found a couple of spots that were missing this check.

* src/qemu/qemu_driver.c (qemuDomainShutdownFlags)
(qemuDomainSetVcpusFlags): Check that domain is still up.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c