rhtyd commented on a change in pull request #2997: Allow KVM VM live migration 
with ROOT volume on file storage type
URL: https://github.com/apache/cloudstack/pull/2997#discussion_r241457470
 
 

 ##########
 File path: 
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/MigrateKVMAsync.java
 ##########
 @@ -36,6 +36,36 @@
     private boolean migrateStorage;
     private boolean autoConvergence;
 
+    /**
+     * Do not pause the domain during migration. The domain's memory will be 
transferred to the destination host while the domain is running. The migration 
may never converge if the domain is changing its memory faster then it can be 
transferred. The domain can be manually paused anytime during migration using 
virDomainSuspend.
+     * @value 1
+     * @see Libvirt <a 
href="https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateFlags";>virDomainMigrateFlags</a>
 documentation
+     */
+    private static final long VIR_MIGRATE_LIVE = 1l;
 
 Review comment:
   @GabrielBrascher to people with weak eyes and misleading fonts configured 
`l` might look like a `1`. Please use `L`, even the jdk8 docs advise to use `L` 
than `l`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to