2016-06-24 19:07:56 +02:00
|
|
|
From 6409e928eb4c2287dca59b139650fab77ea99fb8 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Olaf Hering <olaf@aepfle.de>
|
|
|
|
Date: Fri, 9 May 2014 11:55:31 -0600
|
|
|
|
Subject: [PATCH] libvirt: set migration constraints from cmdline
|
|
|
|
|
|
|
|
References: fate#316614
|
|
|
|
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
|
|
|
|
---
|
|
|
|
include/libvirt/libvirt-domain.h | 25 +++++++++++++++++++++++++
|
|
|
|
src/libxl/libxl_driver.c | 17 ++++++++++++++++-
|
|
|
|
src/libxl/libxl_migration.c | 29 +++++++++++++++++++++++++----
|
|
|
|
src/libxl/libxl_migration.h | 14 +++++++++++++-
|
|
|
|
tools/virsh-domain.c | 38 ++++++++++++++++++++++++++++++++++++++
|
|
|
|
tools/virsh.pod | 8 ++++++++
|
|
|
|
6 files changed, 125 insertions(+), 6 deletions(-)
|
|
|
|
|
2017-10-05 17:49:54 +02:00
|
|
|
Index: libvirt-3.8.0/include/libvirt/libvirt-domain.h
|
2016-06-24 19:07:56 +02:00
|
|
|
===================================================================
|
2017-10-05 17:49:54 +02:00
|
|
|
--- libvirt-3.8.0.orig/include/libvirt/libvirt-domain.h
|
|
|
|
+++ libvirt-3.8.0/include/libvirt/libvirt-domain.h
|
2017-04-03 06:57:47 +02:00
|
|
|
@@ -1008,6 +1008,31 @@ typedef enum {
|
2016-06-24 19:07:56 +02:00
|
|
|
*/
|
2016-07-01 18:39:05 +02:00
|
|
|
# define VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT "auto_converge.increment"
|
2016-06-24 19:07:56 +02:00
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * VIR_MIGRATE_PARAM_SUSE_MAX_ITERS:
|
|
|
|
+ *
|
|
|
|
+ * virDomainMigrate* params field: xc_domain_save max_iters
|
|
|
|
+ */
|
|
|
|
+#define VIR_MIGRATE_PARAM_SUSE_MAX_ITERS "max_iters"
|
|
|
|
+/**
|
|
|
|
+ * VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR:
|
|
|
|
+ *
|
|
|
|
+ * virDomainMigrate* params field: xc_domain_save max_factor
|
|
|
|
+ */
|
|
|
|
+#define VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR "max_factor"
|
|
|
|
+/**
|
|
|
|
+ * VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING:
|
|
|
|
+ *
|
|
|
|
+ * virDomainMigrate* params field: xc_domain_save min_remaining
|
|
|
|
+ */
|
|
|
|
+#define VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING "min_remaining"
|
|
|
|
+/**
|
|
|
|
+ * VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY:
|
|
|
|
+ *
|
|
|
|
+ * virDomainMigrate* params field: xc_domain_save abort_if_busy
|
|
|
|
+ */
|
|
|
|
+#define VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY "abort_if_busy"
|
|
|
|
+
|
|
|
|
/* Domain migration. */
|
|
|
|
virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn,
|
|
|
|
unsigned long flags, const char *dname,
|
2017-10-05 17:49:54 +02:00
|
|
|
Index: libvirt-3.8.0/src/libxl/libxl_driver.c
|
2016-06-24 19:07:56 +02:00
|
|
|
===================================================================
|
2017-10-05 17:49:54 +02:00
|
|
|
--- libvirt-3.8.0.orig/src/libxl/libxl_driver.c
|
|
|
|
+++ libvirt-3.8.0/src/libxl/libxl_driver.c
|
2017-04-28 18:14:51 +02:00
|
|
|
@@ -6105,6 +6105,9 @@ libxlDomainMigratePerform3Params(virDoma
|
2016-06-24 19:07:56 +02:00
|
|
|
const char *dname = NULL;
|
|
|
|
const char *uri = NULL;
|
|
|
|
int ret = -1;
|
|
|
|
+ libxlDomainMigrationProps props = {
|
|
|
|
+ .virFlags = flags,
|
|
|
|
+ };
|
|
|
|
|
|
|
|
#ifdef LIBXL_HAVE_NO_SUSPEND_RESUME
|
|
|
|
virReportUnsupportedError();
|
2017-04-28 18:14:51 +02:00
|
|
|
@@ -6121,6 +6124,18 @@ libxlDomainMigratePerform3Params(virDoma
|
2016-06-24 19:07:56 +02:00
|
|
|
virTypedParamsGetString(params, nparams,
|
|
|
|
VIR_MIGRATE_PARAM_DEST_NAME,
|
|
|
|
&dname) < 0 ||
|
|
|
|
+ virTypedParamsGetUInt(params, nparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MAX_ITERS,
|
|
|
|
+ &props.max_iters) < 0 ||
|
|
|
|
+ virTypedParamsGetUInt(params, nparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR,
|
|
|
|
+ &props.max_factor) < 0 ||
|
|
|
|
+ virTypedParamsGetUInt(params, nparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING,
|
|
|
|
+ &props.min_remaining) < 0 ||
|
|
|
|
+ virTypedParamsGetUInt(params, nparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY,
|
|
|
|
+ &props.abort_if_busy) < 0 ||
|
|
|
|
virTypedParamsGetString(params, nparams,
|
|
|
|
VIR_MIGRATE_PARAM_URI,
|
|
|
|
&uri) < 0)
|
2017-04-28 18:14:51 +02:00
|
|
|
@@ -6135,11 +6150,11 @@ libxlDomainMigratePerform3Params(virDoma
|
2016-06-24 19:07:56 +02:00
|
|
|
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
|
2016-06-24 19:07:56 +02:00
|
|
|
if (libxlDomainMigrationPerformP2P(driver, vm, dom->conn, dom_xml,
|
|
|
|
- dconnuri, uri, dname, flags) < 0)
|
|
|
|
+ dconnuri, uri, dname, &props) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
} else {
|
|
|
|
if (libxlDomainMigrationPerform(driver, vm, dom_xml, dconnuri,
|
|
|
|
- uri, dname, flags) < 0)
|
|
|
|
+ uri, dname, &props) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
}
|
|
|
|
|
2017-10-05 17:49:54 +02:00
|
|
|
Index: libvirt-3.8.0/src/libxl/libxl_migration.c
|
2016-06-24 19:07:56 +02:00
|
|
|
===================================================================
|
2017-10-05 17:49:54 +02:00
|
|
|
--- libvirt-3.8.0.orig/src/libxl/libxl_migration.c
|
|
|
|
+++ libvirt-3.8.0/src/libxl/libxl_migration.c
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -359,18 +359,39 @@ libxlMigrateReceive(virNetSocketPtr sock
|
2016-06-24 19:07:56 +02:00
|
|
|
static int
|
|
|
|
libxlDoMigrateSend(libxlDriverPrivatePtr driver,
|
|
|
|
virDomainObjPtr vm,
|
|
|
|
- unsigned long flags,
|
|
|
|
+ const libxlDomainMigrationProps *props,
|
|
|
|
int sockfd)
|
|
|
|
{
|
|
|
|
libxlDriverConfigPtr cfg = libxlDriverConfigGet(driver);
|
|
|
|
+#ifdef LIBXL_HAVE_DOMAIN_SUSPEND_SUSE
|
|
|
|
+ libxl_domain_suspend_suse_properties libxl_props = {
|
|
|
|
+ .flags = 0,
|
|
|
|
+ };
|
|
|
|
+#else
|
|
|
|
int xl_flags = 0;
|
|
|
|
+#endif
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
- if (flags & VIR_MIGRATE_LIVE)
|
|
|
|
+#ifdef LIBXL_HAVE_DOMAIN_SUSPEND_SUSE
|
|
|
|
+ if (props->virFlags & VIR_MIGRATE_LIVE)
|
|
|
|
+ libxl_props.flags |= LIBXL_SUSPEND_LIVE;
|
|
|
|
+
|
|
|
|
+ libxl_props.max_iters = props->max_iters;
|
|
|
|
+ libxl_props.max_factor = props->max_factor;
|
|
|
|
+ libxl_props.min_remaining = props->min_remaining;
|
|
|
|
+ if (props->abort_if_busy)
|
|
|
|
+ libxl_props.flags |= LIBXL_SUSPEND_ABORT_IF_BUSY;
|
|
|
|
+
|
|
|
|
+ ret = libxl_domain_suspend_suse(cfg->ctx, vm->def->id, sockfd,
|
|
|
|
+ &libxl_props, NULL);
|
|
|
|
+#else
|
|
|
|
+ if (props->virFlags & VIR_MIGRATE_LIVE)
|
|
|
|
xl_flags = LIBXL_SUSPEND_LIVE;
|
|
|
|
|
|
|
|
ret = libxl_domain_suspend(cfg->ctx, vm->def->id, sockfd,
|
|
|
|
xl_flags, NULL);
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (ret != 0) {
|
|
|
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
|
|
|
_("Failed to send migration data to destination host"));
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -908,7 +929,7 @@ struct libxlTunnelControl {
|
|
|
|
static int
|
|
|
|
libxlMigrationStartTunnel(libxlDriverPrivatePtr driver,
|
|
|
|
virDomainObjPtr vm,
|
|
|
|
- unsigned long flags,
|
|
|
|
+ const libxlDomainMigrationProps *props,
|
|
|
|
virStreamPtr st,
|
|
|
|
struct libxlTunnelControl **tnl)
|
|
|
|
{
|
|
|
|
@@ -941,7 +962,7 @@ libxlMigrationStartTunnel(libxlDriverPri
|
|
|
|
|
|
|
|
virObjectUnlock(vm);
|
|
|
|
/* Send data to pipe */
|
|
|
|
- ret = libxlDoMigrateSend(driver, vm, flags, tc->dataFD[1]);
|
|
|
|
+ ret = libxlDoMigrateSend(driver, vm, props, tc->dataFD[1]);
|
|
|
|
virObjectLock(vm);
|
|
|
|
|
|
|
|
out:
|
|
|
|
@@ -976,7 +997,7 @@ libxlDoMigrateP2P(libxlDriverPrivatePtr
|
2016-06-24 19:07:56 +02:00
|
|
|
const char *dconnuri ATTRIBUTE_UNUSED,
|
|
|
|
const char *dname,
|
|
|
|
const char *uri,
|
|
|
|
- unsigned int flags)
|
|
|
|
+ const libxlDomainMigrationProps *props)
|
|
|
|
{
|
|
|
|
virDomainPtr ddomain = NULL;
|
|
|
|
virTypedParameterPtr params = NULL;
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -1016,11 +1037,11 @@ libxlDoMigrateP2P(libxlDriverPrivatePtr
|
2016-06-24 19:07:56 +02:00
|
|
|
/* We don't require the destination to have P2P support
|
|
|
|
* as it looks to be normal migration from the receiver perpective.
|
|
|
|
*/
|
|
|
|
- destflags = flags & ~(VIR_MIGRATE_PEER2PEER);
|
|
|
|
+ destflags = props->virFlags & ~(VIR_MIGRATE_PEER2PEER);
|
|
|
|
|
|
|
|
VIR_DEBUG("Prepare3");
|
|
|
|
virObjectUnlock(vm);
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
- if (flags & VIR_MIGRATE_TUNNELLED) {
|
|
|
|
+ if (props->virFlags & VIR_MIGRATE_TUNNELLED) {
|
|
|
|
if (!(st = virStreamNew(dconn, 0)))
|
|
|
|
goto cleanup;
|
|
|
|
ret = dconn->driver->domainMigratePrepareTunnel3Params
|
|
|
|
@@ -1034,7 +1055,7 @@ libxlDoMigrateP2P(libxlDriverPrivatePtr
|
|
|
|
if (ret == -1)
|
|
|
|
goto cleanup;
|
2016-06-24 19:07:56 +02:00
|
|
|
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
- if (!(flags & VIR_MIGRATE_TUNNELLED)) {
|
|
|
|
+ if (!(props->virFlags & VIR_MIGRATE_TUNNELLED)) {
|
|
|
|
if (uri_out) {
|
|
|
|
if (virTypedParamsReplaceString(¶ms, &nparams,
|
|
|
|
VIR_MIGRATE_PARAM_URI, uri_out) < 0) {
|
|
|
|
@@ -1049,11 +1070,11 @@ libxlDoMigrateP2P(libxlDriverPrivatePtr
|
|
|
|
}
|
2016-06-24 19:07:56 +02:00
|
|
|
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
VIR_DEBUG("Perform3 uri=%s", NULLSTR(uri_out));
|
|
|
|
- if (flags & VIR_MIGRATE_TUNNELLED)
|
|
|
|
- ret = libxlMigrationStartTunnel(driver, vm, flags, st, &tc);
|
|
|
|
+ if (props->virFlags & VIR_MIGRATE_TUNNELLED)
|
|
|
|
+ ret = libxlMigrationStartTunnel(driver, vm, props, st, &tc);
|
|
|
|
else
|
|
|
|
ret = libxlDomainMigrationPerform(driver, vm, NULL, NULL,
|
|
|
|
- uri_out, NULL, flags);
|
|
|
|
+ uri_out, NULL, props);
|
2016-06-24 19:07:56 +02:00
|
|
|
if (ret < 0)
|
|
|
|
orig_err = virSaveLastError();
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
|
|
|
|
@@ -1084,14 +1105,14 @@ libxlDoMigrateP2P(libxlDriverPrivatePtr
|
2016-06-24 19:07:56 +02:00
|
|
|
orig_err = virSaveLastError();
|
|
|
|
|
|
|
|
VIR_DEBUG("Confirm3 cancelled=%d vm=%p", cancelled, vm);
|
|
|
|
- ret = libxlDomainMigrationConfirm(driver, vm, flags, cancelled);
|
|
|
|
+ ret = libxlDomainMigrationConfirm(driver, vm, props->virFlags, cancelled);
|
|
|
|
|
|
|
|
if (ret < 0)
|
|
|
|
VIR_WARN("Guest %s probably left in 'paused' state on source",
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
vm->def->name);
|
|
|
|
|
|
|
|
cleanup:
|
|
|
|
- if (flags & VIR_MIGRATE_TUNNELLED) {
|
|
|
|
+ if (props->virFlags & VIR_MIGRATE_TUNNELLED) {
|
|
|
|
libxlMigrationStopTunnel(tc);
|
|
|
|
virObjectUnref(st);
|
|
|
|
}
|
|
|
|
@@ -1138,7 +1159,7 @@ libxlDomainMigrationPerformP2P(libxlDriv
|
2016-06-24 19:07:56 +02:00
|
|
|
const char *dconnuri,
|
|
|
|
const char *uri_str ATTRIBUTE_UNUSED,
|
|
|
|
const char *dname,
|
|
|
|
- unsigned int flags)
|
|
|
|
+ const libxlDomainMigrationProps *props)
|
|
|
|
{
|
|
|
|
int ret = -1;
|
|
|
|
bool useParams;
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -1173,7 +1194,7 @@ libxlDomainMigrationPerformP2P(libxlDriv
|
2016-06-24 19:07:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ret = libxlDoMigrateP2P(driver, vm, sconn, xmlin, dconn, dconnuri,
|
|
|
|
- dname, uri_str, flags);
|
|
|
|
+ dname, uri_str, props);
|
|
|
|
|
|
|
|
cleanup:
|
|
|
|
orig_err = virSaveLastError();
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -1195,7 +1216,7 @@ libxlDomainMigrationPerform(libxlDriverP
|
2016-06-24 19:07:56 +02:00
|
|
|
const char *dconnuri ATTRIBUTE_UNUSED,
|
|
|
|
const char *uri_str,
|
|
|
|
const char *dname ATTRIBUTE_UNUSED,
|
|
|
|
- unsigned int flags)
|
|
|
|
+ const libxlDomainMigrationProps *props)
|
|
|
|
{
|
|
|
|
libxlDomainObjPrivatePtr priv = vm->privateData;
|
|
|
|
char *hostname = NULL;
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -1235,7 +1256,7 @@ libxlDomainMigrationPerform(libxlDriverP
|
2016-06-24 19:07:56 +02:00
|
|
|
|
|
|
|
/* suspend vm and send saved data to dst through socket fd */
|
|
|
|
virObjectUnlock(vm);
|
|
|
|
- ret = libxlDoMigrateSend(driver, vm, flags, sockfd);
|
|
|
|
+ ret = libxlDoMigrateSend(driver, vm, props, sockfd);
|
|
|
|
virObjectLock(vm);
|
|
|
|
|
|
|
|
cleanup:
|
2017-10-05 17:49:54 +02:00
|
|
|
Index: libvirt-3.8.0/src/libxl/libxl_migration.h
|
2016-06-24 19:07:56 +02:00
|
|
|
===================================================================
|
2017-10-05 17:49:54 +02:00
|
|
|
--- libvirt-3.8.0.orig/src/libxl/libxl_migration.h
|
|
|
|
+++ libvirt-3.8.0/src/libxl/libxl_migration.h
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -39,6 +39,10 @@
|
2016-06-24 19:07:56 +02:00
|
|
|
VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \
|
|
|
|
VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \
|
|
|
|
VIR_MIGRATE_PARAM_DEST_XML, VIR_TYPED_PARAM_STRING, \
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MAX_ITERS, VIR_TYPED_PARAM_UINT, \
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR, VIR_TYPED_PARAM_UINT, \
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING, VIR_TYPED_PARAM_UINT, \
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY, VIR_TYPED_PARAM_UINT, \
|
|
|
|
NULL
|
|
|
|
|
|
|
|
char *
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -70,6 +74,14 @@ libxlDomainMigrationPrepare(virConnectPt
|
2016-06-24 19:07:56 +02:00
|
|
|
int cookieinlen,
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
|
|
+typedef struct {
|
|
|
|
+ unsigned int virFlags;
|
|
|
|
+ unsigned int max_iters;
|
|
|
|
+ unsigned int max_factor;
|
|
|
|
+ unsigned int min_remaining;
|
|
|
|
+ unsigned int abort_if_busy;
|
|
|
|
+} libxlDomainMigrationProps;
|
|
|
|
+
|
|
|
|
int
|
|
|
|
libxlDomainMigrationPerformP2P(libxlDriverPrivatePtr driver,
|
|
|
|
virDomainObjPtr vm,
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -78,7 +90,7 @@ libxlDomainMigrationPerformP2P(libxlDriv
|
2016-06-24 19:07:56 +02:00
|
|
|
const char *dconnuri,
|
|
|
|
const char *uri_str,
|
|
|
|
const char *dname,
|
|
|
|
- unsigned int flags);
|
|
|
|
+ const libxlDomainMigrationProps *props);
|
|
|
|
|
|
|
|
int
|
|
|
|
libxlDomainMigrationPerform(libxlDriverPrivatePtr driver,
|
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0
- Modularize storage driver by splitting it into backend-specific
subpackages
- CVE-2017-2635, bsc#1027075
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
b018ada3-shunloadtest-build-fix.patch,
f86a7a83-libxl-dom0-balloon-fix.patch,
6e4759d0-libxl-timer-fix.patch,
87df87e0-libxl-timer-tsc-emulate.patch,
b4386fda-xenconfig-timer-fix.patch,
d3970925-timer-tests.patch,
321a28c6-libxl-default-disk-format.patch,
bd116810-libxl-fix-disk-detach.patch,
ff225538-libxl-autoballoon-setting.patch,
c89a6e78-libxl-physinfo-cleanup.patch,
d2b77608-libxl-maxmem-fix.patch,
79692c38-libxl-dom0-maxmem.patch,
4ab0c959-libxl-mem-leak.patch,
2dc1cf19-libxl-double-free.patch,
apparmor-errormsg-fix.patch,
apparmor-alt-seclabel.patch,
qemu-disable-namespaces.patch
OBS-URL: https://build.opensuse.org/request/show/476767
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
2017-03-03 16:02:55 +01:00
|
|
|
@@ -87,7 +99,7 @@ libxlDomainMigrationPerform(libxlDriverP
|
2016-06-24 19:07:56 +02:00
|
|
|
const char *dconnuri,
|
|
|
|
const char *uri_str,
|
|
|
|
const char *dname,
|
|
|
|
- unsigned int flags);
|
|
|
|
+ const libxlDomainMigrationProps *props);
|
|
|
|
|
|
|
|
virDomainPtr
|
|
|
|
libxlDomainMigrationFinish(virConnectPtr dconn,
|
2017-10-05 17:49:54 +02:00
|
|
|
Index: libvirt-3.8.0/tools/virsh-domain.c
|
2016-06-24 19:07:56 +02:00
|
|
|
===================================================================
|
2017-10-05 17:49:54 +02:00
|
|
|
--- libvirt-3.8.0.orig/tools/virsh-domain.c
|
|
|
|
+++ libvirt-3.8.0/tools/virsh-domain.c
|
2017-09-15 19:11:37 +02:00
|
|
|
@@ -10432,6 +10432,22 @@ static const vshCmdOptDef opts_migrate[]
|
2017-04-03 06:57:47 +02:00
|
|
|
.type = VSH_OT_BOOL,
|
|
|
|
.help = N_("use TLS for migration")
|
2016-06-24 19:07:56 +02:00
|
|
|
},
|
|
|
|
+ {.name = "max_iters",
|
|
|
|
+ .type = VSH_OT_INT,
|
|
|
|
+ .help = N_("SUSE libxl: Number of iterations before final suspend (default: 30).")
|
|
|
|
+ },
|
|
|
|
+ {.name = "max_factor",
|
|
|
|
+ .type = VSH_OT_INT,
|
|
|
|
+ .help = N_("SUSE libxl: Max amount of memory to transfer before final suspend (default: 3*RAM).")
|
|
|
|
+ },
|
|
|
|
+ {.name = "min_remaining",
|
|
|
|
+ .type = VSH_OT_INT,
|
|
|
|
+ .help = N_("SUSE libxl: Number of dirty pages before final suspend (default: 50).")
|
|
|
|
+ },
|
|
|
|
+ {.name = "abort_if_busy",
|
|
|
|
+ .type = VSH_OT_BOOL,
|
|
|
|
+ .help = N_("SUSE libxl: Abort migration instead of doing final suspend.")
|
|
|
|
+ },
|
|
|
|
{.name = NULL}
|
|
|
|
};
|
|
|
|
|
2017-09-15 19:11:37 +02:00
|
|
|
@@ -10455,6 +10471,7 @@ doMigrate(void *opaque)
|
2016-06-24 19:07:56 +02:00
|
|
|
unsigned long long ullOpt = 0;
|
|
|
|
int rv;
|
|
|
|
virConnectPtr dconn = data->dconn;
|
|
|
|
+ unsigned int uint_opt = 0;
|
|
|
|
|
|
|
|
sigemptyset(&sigmask);
|
|
|
|
sigaddset(&sigmask, SIGINT);
|
2017-09-15 19:11:37 +02:00
|
|
|
@@ -10574,6 +10591,27 @@ doMigrate(void *opaque)
|
2016-06-24 19:07:56 +02:00
|
|
|
goto save_error;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ if (vshCommandOptUInt(ctl, cmd, "max_iters", &uint_opt) > 0 && uint_opt) {
|
|
|
|
+ if (virTypedParamsAddUInt(¶ms, &nparams, &maxparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MAX_ITERS, uint_opt) < 0)
|
|
|
|
+ goto save_error;
|
|
|
|
+ }
|
|
|
|
+ if (vshCommandOptUInt(ctl, cmd, "max_factor", &uint_opt) > 0 && uint_opt) {
|
|
|
|
+ if (virTypedParamsAddUInt(¶ms, &nparams, &maxparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR, uint_opt) < 0)
|
|
|
|
+ goto save_error;
|
|
|
|
+ }
|
|
|
|
+ if (vshCommandOptUInt(ctl, cmd, "min_remaining", &uint_opt) > 0 && uint_opt) {
|
|
|
|
+ if (virTypedParamsAddUInt(¶ms, &nparams, &maxparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING, uint_opt) < 0)
|
|
|
|
+ goto save_error;
|
|
|
|
+ }
|
|
|
|
+ if (vshCommandOptBool(cmd, "abort_if_busy")) {
|
|
|
|
+ if (virTypedParamsAddUInt(¶ms, &nparams, &maxparams,
|
|
|
|
+ VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY, 1) < 0)
|
|
|
|
+ goto save_error;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (vshCommandOptStringReq(ctl, cmd, "xml", &opt) < 0)
|
|
|
|
goto out;
|
|
|
|
if (opt) {
|
2017-10-05 17:49:54 +02:00
|
|
|
Index: libvirt-3.8.0/tools/virsh.pod
|
2016-06-24 19:07:56 +02:00
|
|
|
===================================================================
|
2017-10-05 17:49:54 +02:00
|
|
|
--- libvirt-3.8.0.orig/tools/virsh.pod
|
|
|
|
+++ libvirt-3.8.0/tools/virsh.pod
|
|
|
|
@@ -1840,6 +1840,14 @@ Providing I<--tls> causes the migration
|
Accepting request 500763 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.4.0
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
aeda1b8c-qemu-no-error-shutdown.patch,
8023b21a-conf-ioapic.patch, 6b5c6314-qemu-irqchip.patch,
2020e2c6-conf-intremap.patch, 04028a9d-qemu-intremap.patch,
d12781b4-conf-iommu-cache-mode-attr.patch,
a5691448-qemu-iommu-cache-mode.patch,
3a276c65-conf-iommu-def-stability-check.patch,
935d927a-conf-iommu-ABI-stability-check.patch,
4cd3f241-fix-NULL-disk-source.patch,
975ea20f-loopback-macro.patch,
dbb85e0c-libxl-graphics-listen-addr.patch,
libxl-def-usbctrl.patch, revert-2841e675-mtu.patch
- FATE#321335, bsc#1031056, bsc#1037774, bsc#1040207, bsc#1040213
OBS-URL: https://build.opensuse.org/request/show/500763
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=606
2017-06-02 20:08:28 +02:00
|
|
|
the migration of the domain. Usage requires proper TLS setup for both source
|
|
|
|
and target.
|
2016-06-24 19:07:56 +02:00
|
|
|
|
|
|
|
+SUSE-specific options for Xen: I<--max_iters> B<num> allows specifying the maximum
|
|
|
|
+number of iterations before final suspend. Default is 30. I<--max_factor> B<num>
|
|
|
|
+allows specifying the maximum amount of memory to transfer before final suspend.
|
|
|
|
+Default is (3*VM memory size). I<--min_remaining> B<num> allows specifying the
|
|
|
|
+number of dirty pages before final suspend. Default is 50. I<--abort_if_busy>
|
|
|
|
+can be used to abort the migration instead of doing the final suspend for VMs with
|
|
|
|
+busy workloads.
|
|
|
|
+
|
|
|
|
Running migration can be canceled by interrupting virsh (usually using
|
|
|
|
C<Ctrl-C>) or by B<domjobabort> command sent from another virsh instance.
|
|
|
|
|