|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] libxc/migration: Abort migration on precopy policy request
commit 69f741347d9718b470fe29c012b7a2622249b709
Author: Andrew Panyakin <apanyaki@xxxxxxxxxx>
AuthorDate: Tue Apr 7 14:52:22 2020 +0000
Commit: Wei Liu <wl@xxxxxxx>
CommitDate: Thu Apr 9 15:43:18 2020 +0100
libxc/migration: Abort migration on precopy policy request
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@xxxxxxxxxx>
Acked-by: Wei Liu <wl@xxxxxxx>
[wei: fix coding style issue]
---
tools/libxc/xc_sr_save.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/libxc/xc_sr_save.c b/tools/libxc/xc_sr_save.c
index fa736a311f..6ba6623ff3 100644
--- a/tools/libxc/xc_sr_save.c
+++ b/tools/libxc/xc_sr_save.c
@@ -560,6 +560,13 @@ static int send_memory_live(struct xc_sr_context *ctx)
}
+ if ( policy_decision == XGS_POLICY_ABORT )
+ {
+ PERROR("Abort precopy loop");
+ rc = -1;
+ goto out;
+ }
+
out:
xc_set_progress_prefix(xch, NULL);
free(progress_str);
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |