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

Eric Blake eblake at redhat.com
Wed Jul 13 14:32:21 UTC 2011


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.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110713/bba13ed8/attachment-0001.sig>


More information about the libvir-list mailing list