]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Introduce qemuProcessBeginStopJob
authorJiri Denemark <jdenemar@redhat.com>
Thu, 11 Feb 2016 14:13:09 +0000 (15:13 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 19 Feb 2016 14:41:57 +0000 (15:41 +0100)
commit4d0c535a36638121a5c846b8934a807b36726473
treed9753bce64df30c1e091351fed1fa3deddcac3d5
parentb7a948be013d91a0c01f4956e7453aa5b939c395
qemu: Introduce qemuProcessBeginStopJob

When destroying a domain we need to make sure we will be able to start a
job no matter what other operations are running or even stuck in a job.
This is done by killing the domain before starting the destroy job.

Let's introduce qemuProcessBeginStopJob which combines killing a domain
and starting a job in a single API which can be called everywhere we
need a job to stop a domain.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h