]> xenbits.xensource.com Git - libvirt.git/commit
qemu: driver: Reload snapshots and managedsaves prior to reconnecting
authorPeter Krempa <pkrempa@redhat.com>
Wed, 3 Dec 2014 10:18:53 +0000 (11:18 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Dec 2014 17:50:22 +0000 (18:50 +0100)
commit48a055607c03c7cd0bdb5fc748c591db01fa45ae
tree0206e43add56885cfcd876e47d656b1b051700c2
parentb17c0f0e9ad289e6b763fa623574e65283655145
qemu: driver: Reload snapshots and managedsaves prior to reconnecting

Reconnect to the VM is a possibly long-running job spawned in a separate
thread. We should reload the snapshot defs and managedsave state prior
to spawning the thread to avoid blocking of the daemon startup which
would serialize on the VM lock.

Also the reloading code would violate the domain job held while
reconnecting as the loader functions don't create jobs.
src/qemu/qemu_driver.c