libxc defines XGS_POLICY_ABORT for precopy policy to signal that migration
should be aborted (eg. if the estimated pause time is too huge for the
instance). Default simple precopy policy never returns that, but it could be
overriden with a custom one.
Signed-off-by: Andrew Panyakin <apanyaki@amazon.com>
Acked-by: Wei Liu <wl@xen.org>
[wei: fix coding style issue]
}
+ if ( policy_decision == XGS_POLICY_ABORT )
+ {
+ PERROR("Abort precopy loop");
+ rc = -1;
+ goto out;
+ }
+
out:
xc_set_progress_prefix(xch, NULL);
free(progress_str);