[libvirt] [PATCH] qemu: Save domain status ASAP after creating qemu process

Jiri Denemark jdenemar at redhat.com
Thu Jul 14 14:14:14 UTC 2011


On Wed, Jul 13, 2011 at 08:32:21 -0600, Eric Blake wrote:
> On 07/13/2011 07:58 AM, Jiri Denemark wrote:
> > When creating new qemu process we saved domain status XML only after the
> > process was fully setup and running. In case libvirtd was killed before
> > the whole process finished, once libvirtd started again it didn't know
> > anything about the new process and we end up with an orphaned qemu
> > process. Let's save the domain status XML as soon as we know the PID so
> > that libvirtd can kill the process on restart.
> > ---
> >  src/qemu/qemu_process.c |   17 +++++++++++++++++
> >  1 files changed, 17 insertions(+), 0 deletions(-)
> > 
> 
> ACK.

Pushed, thanks.

Jirka




More information about the libvir-list mailing list