From fa8e0b69fe9b04b9c0d30938179c38bbb032a621 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Mon, 8 Oct 2012 11:45:36 +0100 Subject: [PATCH] libxl: Allow migration with qemu-xen. Signed-off-by: Anthony PERARD Acked-by: Ian Campbell Committed-by: Ian Campbell --- tools/libxl/libxl.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index af3682f76d..0cf4768b5f 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -767,23 +767,6 @@ int libxl_domain_suspend(libxl_ctx *ctx, uint32_t domid, int fd, int flags, goto out_err; } - if (type == LIBXL_DOMAIN_TYPE_HVM && flags & LIBXL_SUSPEND_LIVE) { - switch (libxl__device_model_version_running(gc, domid)) { - case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN: - LOG(ERROR, - "cannot live migrate HVM domains with qemu-xen device-model"); - rc = ERROR_FAIL; - goto out_err; - case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL: - /* No problem */ - break; - case -1: - rc = ERROR_FAIL; - goto out_err; - default: abort(); - } - } - libxl__domain_suspend_state *dss; GCNEW(dss); -- 2.30.2