[libvirt] [PATCH] Explicitly set VM state to paused after migration completes

Eric Blake eblake at redhat.com
Thu Jun 2 19:23:22 UTC 2011


On 06/02/2011 09:42 AM, Daniel P. Berrange wrote:
> In v3 migration, once migration is completed, the VM needs
> to be left in a paused state until after Finish3 has been
> executed on the target. Only then will the VM be killed
> off. When using non-JSON QEMU monitor though, we don't
> receive any 'STOP' event from QEMU, so we need to manually
> set our state offline & thus release lock manager leases.
> It doesn't hurt to run this on the JSON case too, just in
> case the event gets lost somehow
> 
> * src/qemu/qemu_migration.c: Explicitly set VM state to
>   paused when migration completes
> ---
>  src/qemu/qemu_migration.c |   28 +++++++++++++++++++++++++++-
>  1 files changed, 27 insertions(+), 1 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/20110602/2bddb88f/attachment-0001.sig>


More information about the libvir-list mailing list