|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Rlibxl: refuse to try and migrate an HVM guest using qemu-xen
> I think we should add an appropriate error message as a blocker. We
> should also try to fix this on the QEMU side, but given that the QEMU
> 1.0 stable tree is pretty much unmaintaned, we won't be able to backport
> the fix there, so we cannot be sure that a distro will end up with a
> QEMU with or without the fix.
How about this for the time being, we can always revert or enhance as
necessary before 4.2.
8<----------------------
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1340985595 -3600
# Node ID a0c1c8c585e03279f9ea149bc2951d0df900717e
# Parent d849ca2ef197dbf0e731aa4726da0eb3e2801280
libxl: refuse to try and migrate an HVM guest using qemu-xen
libxl/qemu-upstream currently do not collude together to enable log-dirty mode
and therefore migrations are unsafe. Refuse to even try for now.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r d849ca2ef197 -r a0c1c8c585e0 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Fri Jun 29 15:57:28 2012 +0100
+++ b/tools/libxl/libxl.c Fri Jun 29 16:59:55 2012 +0100
@@ -746,6 +746,17 @@ int libxl_domain_suspend(libxl_ctx *ctx,
goto out_err;
}
+ libxl_device_model_version dm =
+ libxl__device_model_version_running(gc, domid);
+ if (type == LIBXL_DOMAIN_TYPE_HVM &&
+ dm == LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN &&
+ flags & LIBXL_SUSPEND_LIVE) {
+ LOG(ERROR, "cannot live migrate HVM domains with qemu-xen
device-model");
+ rc = ERROR_FAIL;
+ goto out_err;
+
+ }
+
libxl__domain_suspend_state *dss;
GCNEW(dss);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |