Revision 061a6a1d lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
2346 2346
                       instance.hvparams[constants.HV_MIGRATION_DOWNTIME])
2347 2347
    self._CallMonitorCommand(instance_name, migrate_command)
2348 2348

  
2349
    # These commands are supported in latest qemu versions.
2350
    # Since _CallMonitorCommand does not catch monitor errors
2351
    # this does not raise an exception in case command is not supported
2352
    # TODO: either parse output of command or see if the command supported
2353
    # via info help (see hotplug)
2354
    migrate_command = ("migrate_set_capability xbzrle on")
2355
    self._CallMonitorCommand(instance_name, migrate_command)
2356

  
2357
    migrate_command = ("migrate_set_capability auto-converge on")
2358
    self._CallMonitorCommand(instance_name, migrate_command)
2359

  
2349 2360
    migrate_command = "migrate -d tcp:%s:%s" % (target, port)
2350 2361
    self._CallMonitorCommand(instance_name, migrate_command)
2351 2362

  

Also available in: Unified diff