Revision 3a224471 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
2373 2373
                       instance.hvparams[constants.HV_MIGRATION_DOWNTIME])
2374 2374
    self._CallMonitorCommand(instance_name, migrate_command)
2375 2375

  
2376
    # These commands are supported in latest qemu versions.
2377
    # Since _CallMonitorCommand does not catch monitor errors
2378
    # this does not raise an exception in case command is not supported
2379
    # TODO: either parse output of command or see if the command supported
2380
    # via info help (see hotplug)
2381
    migrate_command = ("migrate_set_capability xbzrle on")
2382
    self._CallMonitorCommand(instance_name, migrate_command)
2383

  
2384
    migrate_command = ("migrate_set_capability auto-converge on")
2385
    self._CallMonitorCommand(instance_name, migrate_command)
2386

  
2376 2387
    migrate_command = "migrate -d tcp:%s:%s" % (target, port)
2377 2388
    self._CallMonitorCommand(instance_name, migrate_command)
2378 2389

  

Also available in: Unified diff