]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix vmdef usage while in monitor in qemuDomainHotplugVcpus
authorJán Tomko <jtomko@redhat.com>
Tue, 16 Dec 2014 08:30:49 +0000 (09:30 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 14 Jan 2015 18:30:32 +0000 (19:30 +0100)
commit051add2ff90f7b7f821e274fd318e1d845144157
treec5aedead34784966080603c855cf8e97342c256e
parenta5e5996b91129130863be8b5608d47d0ef01e326
Fix vmdef usage while in monitor in qemuDomainHotplugVcpus

Exit the monitor right after we've done with it to get
the virDomainObjPtr lock back, otherwise we might be accessing
vm->def while it's being cleaned up by qemuProcessStop.

If the domain crashed while we were in the monitor, exit
early instead of changing vm->def which is now the persistent
definition.
src/qemu/qemu_driver.c