]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix possible race when pausing guest
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Nov 2012 14:45:47 +0000 (15:45 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Nov 2012 19:18:46 +0000 (20:18 +0100)
commitd0fc6dc8315b3172501e6fe09c8aed12598de47e
tree32bb033aa01534507b6bc7ec0f3dad765497b6a6
parentde76cae97110ac57ea636af54d5fd57c7cf52d72
qemu: Fix possible race when pausing guest

When pausing the guest while migration is running (to speed up
convergence) the virDomainSuspend API checks if the migration job is
active before entering the job. This could cause a possible race if the
virDomainSuspend is called while the job is active but ends before the
Suspend API enters the job (this would require that the migration is
aborted). This would cause a incorrect event to be emitted.
src/qemu/qemu_driver.c