[libvirt] [PATCH v2] Fix race condition reconnecting to vms & loading configs

Eric Blake eblake at redhat.com
Tue Oct 29 14:28:48 UTC 2013


On 10/29/2013 08:24 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The following sequence
> 
>  1. Define a persistent QMEU guest
>  2. Start the QEMU guest
>  3. Stop libvirtd
>  4. Kill the QEMU process
>  5. Start libvirtd
>  6. List persistent guets

s/guets/guests/


> The easy fix is to simply switch the order of steps 2 & 3.
> 
> In addition to this though, we must only attempt to reconnect
> to a VM which had a non-zero PID loaded from its state file.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/qemu/qemu_driver.c  | 3 +--
>  src/qemu/qemu_process.c | 3 +++
>  2 files changed, 4 insertions(+), 2 deletions(-)

ACK, good for 1.1.4.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list