[libvirt] [PATCH] qemu: set seamless migration capability

Osier Yang jyang at redhat.com
Mon Oct 22 08:13:57 UTC 2012


On 2012年10月19日 15:35, Michal Privoznik wrote:
> As we switched to setting capabilities based on QMP communication,
> qemu seamless-migration capability was not set. In the -help output
> this knob is called seamless-migration=[on|off]. The equivalent in
> QMP world is SPICE_MIGRATE_COMPLETED event (qemu upstream commit
> 2fdd16e2).
> ---
>   src/qemu/qemu_capabilities.c |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
> index e897f86..0ddab80 100644
> --- a/src/qemu/qemu_capabilities.c
> +++ b/src/qemu/qemu_capabilities.c
> @@ -1905,6 +1905,8 @@ qemuCapsProbeQMPEvents(qemuCapsPtr caps,
>
>           if (STREQ(name, "BALLOON_CHANGE"))
>               qemuCapsSet(caps, QEMU_CAPS_BALLOON_EVENT);
> +        if (STREQ(name, "SPICE_MIGRATE_COMPLETED"))
> +            qemuCapsSet(caps, QEMU_CAPS_SEAMLESS_MIGRATION);
>           VIR_FREE(name);
>       }
>       VIR_FREE(events);

ACK




More information about the libvir-list mailing list