]> xenbits.xensource.com Git - libvirt.git/commit
qemu: event: Don't fiddle with disk backing trees without a job
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Mar 2015 16:00:03 +0000 (17:00 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2015 09:57:33 +0000 (10:57 +0100)
commit1a92c719101e5bfa6fe2b78006ad04c7f075ea28
tree01dce818b25ddb6b71e16ba3c78d3f7581d95ec5
parent5c634730b99b53afd6e2cea4b7d2fc2dfc2ee630
qemu: event: Don't fiddle with disk backing trees without a job

Surprisingly we did not grab a VM job when a block job finished and we'd
happily rewrite the backing chain data. This made it possible to crash
libvirt when queueing two backing chains tightly and other badness.

To fix it, add yet another handler to the helper thread that handles
monitor events that require a job.
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c