mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: Migrate at unlimited speed by default
Previously, qemu did not respond to monitor commands during migration if the limit was too high. This prevented us from raising the limit earlier. The qemu issue seems to be fixed (according to my testing) and we may remove the 32Mb/s limit.
This commit is contained in:
parent
aba9abc5b7
commit
6cfdeaac55
@ -217,7 +217,7 @@ static void *qemuDomainObjPrivateAlloc(void)
|
||||
if (!(priv->cons = virConsoleAlloc()))
|
||||
goto error;
|
||||
|
||||
priv->migMaxBandwidth = QEMU_DOMAIN_DEFAULT_MIG_BANDWIDTH_MAX;
|
||||
priv->migMaxBandwidth = QEMU_DOMAIN_MIG_BANDWIDTH_MAX;
|
||||
|
||||
return priv;
|
||||
|
||||
|
@ -38,13 +38,12 @@
|
||||
(1 << VIR_DOMAIN_VIRT_KVM) | \
|
||||
(1 << VIR_DOMAIN_VIRT_XEN))
|
||||
|
||||
# define QEMU_DOMAIN_DEFAULT_MIG_BANDWIDTH_MAX 32
|
||||
# if ULONG_MAX == 4294967295
|
||||
/* Qemu has a 64-bit limit, but we are limited by our historical choice of
|
||||
* representing bandwidth in a long instead of a 64-bit int. */
|
||||
# define QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX ULONG_MAX
|
||||
# define QEMU_DOMAIN_MIG_BANDWIDTH_MAX ULONG_MAX
|
||||
# else
|
||||
# define QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX (INT64_MAX / (1024 * 1024))
|
||||
# define QEMU_DOMAIN_MIG_BANDWIDTH_MAX (INT64_MAX / (1024 * 1024))
|
||||
# endif
|
||||
|
||||
# define JOB_MASK(job) (1 << (job - 1))
|
||||
|
@ -3187,8 +3187,8 @@ qemuMigrationToFile(struct qemud_driver *driver, virDomainObjPtr vm,
|
||||
* Failure to change migration speed is not fatal. */
|
||||
if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) == 0) {
|
||||
qemuMonitorSetMigrationSpeed(priv->mon,
|
||||
QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX);
|
||||
priv->migMaxBandwidth = QEMU_DOMAIN_FILE_MIG_BANDWIDTH_MAX;
|
||||
QEMU_DOMAIN_MIG_BANDWIDTH_MAX);
|
||||
priv->migMaxBandwidth = QEMU_DOMAIN_MIG_BANDWIDTH_MAX;
|
||||
qemuDomainObjExitMonitorWithDriver(driver, vm);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user